ERROR 1698 (28000): Access denied for user ‘root’@’localhost’
You need to use
sudo in the line execution. Yeah. Just that.
I had this
addons: mariadb: 10.4 before_script: - mysql -e 'create database testing;'
mysql -e 'create database testing;' line. The fix was using
addons: mariadb: 10.4 before_script: - sudo mysql -e 'create database testing;'
SQLSTATE[HY000]  Access denied for user ‘travis’@’localhost’
This error happens because Travis by default uses
dist: xenial which is not fully compatible with the MariaDB addon yet.
The solution is setting
dist: precise in your
dist: precise # ... rest of your config file
And that’s it. Hope it helps!
Thanks for your time!
I'm nahuelhds. If you like what I do, you can...