main/mysql: Added embedded server support