I tried to switch to xenial with enabled mySQL service.
services: - mysql dist: xenial
But now I get the following error messages:
$ sudo systemctl start mysql Failed to start mysql.service: Unit mysql.service is masked. MySQL did not start within 10 seconds
and then later…
$ mysql -e 'create database test;' ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) The command "mysql -e 'create database test;'" failed and exited with 1 during .
How can I start the mysql service on xenial correctly?