As an experiment, I modified my setup script so that the failure of this particular command would not cause the whole build to error. After doing this:
"Access denied for user 'travis'@'localhost' (using password: NO)"
So, if I try to do the GRANT it errors. If I try to omit the GRANT it fails.
+ - mysql -e 'drop user if exists travis@localhost;'
+ - mysql -e 'create user travis@localhost;'
- mysql -e 'drop database if exists peewee_test;'
- mysql -e 'create database peewee_test;'
- mysql -e 'grant all on *.* to travis@localhost;' || true
Be nice if the travis folks could comment here… this was fairly disruptive and I have no idea how to debug it or even report the issue… now that they’ve closed their fucking issue tracker and force everyone onto here.
MariaDB 10.4 changes authentication so it does not work on Travis like 10.3 did…
jobs:
include:
- addons:
mariadb: 10.3
- addons:
mariadb: 10.4
install: mysql -e "SET Password=PASSWORD('travis')"
script: mysql --version
MariaDB 10.3 works but 10.4 generates:
ERROR 1698 (28000): Access denied for user 'root'@'localhost'
The command "mysql -e "SET Password=PASSWORD('travis')"" failed and exited with 1 during .