From 2028eb9a5ebd4f9814b7654584e331e261727077 Mon Sep 17 00:00:00 2001 From: Radoslaw Mejer Date: Thu, 26 Jul 2018 18:38:33 +0200 Subject: [PATCH] Fix: reset password auth for 'mysql' db backend For more information see: https://github.com/mysqljs/mysql/pull/1962#issuecomment-390900841 --- .travis/setUp.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.travis/setUp.sh b/.travis/setUp.sh index f1fb80e..12ca9dc 100755 --- a/.travis/setUp.sh +++ b/.travis/setUp.sh @@ -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")