nyth7g
Last Updated: February 25, 2016
·
1.497K
· mauris
4749d60af0d45cc6ed8eaf014edb1f65

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

Say Thanks
Respond