Last Updated: February 25, 2016
·
2.659K
· mauris

Change MySQL password in Travis-CI

You are able to change the MySQL user password in your Travis-CI virtual machine builds. Simply add the following to your .travis.yml configuration file.

before_script:
  - echo "USE mysql;\nUPDATE user SET password=PASSWORD('password') WHERE user='root';\nFLUSH PRIVILEGES;\n" | mysql -u root

Read more at http://packfire.tumblr.com/post/32584168389/changing-mysql-default-password-in-travis-continuous