Skip to content

Commit

Permalink
Fix: reset password auth for 'mysql' db backend
Browse files Browse the repository at this point in the history
For more information see: mysqljs/mysql#1962 (comment)
  • Loading branch information
Radoslaw Mejer committed Jul 26, 2018
1 parent 740669a commit 2028eb9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .travis/setUp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,13 @@ case "$NODE_ENV" in
-e MYSQL_DATABASE=test \
-e MYSQL_USER=test \
-e MYSQL_PASSWORD=test \
-e MYSQL_RANDOM_ROOT_PASSWORD=1 \
-e MYSQL_ROOT_PASSWORD=secret \
mysql

sleep 20
sleep 60

docker exec knex-db mysql -uroot -psecret -e"ALTER USER 'test'@'%' IDENTIFIED WITH mysql_native_password BY 'test';"
docker exec knex-db mysql -uroot -psecret -e"FLUSH PRIVILEGES;"
;;

"mysql5")
Expand Down

0 comments on commit 2028eb9

Please sign in to comment.