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?
Sorry to hear that! Could you please share the full build log and/or config so we can look at it and see if there’s anything that’s missing? If it’s for a private project, please send an email to support@travis-ci.com.