Skip to content

Commit

Permalink
Merge pull request #3644 from morozov/mysql8-auth
Browse files Browse the repository at this point in the history
Using command line options to configure MySQL 8 instead of mounting a config file
  • Loading branch information
morozov authored Aug 3, 2019
2 parents 292d819 + 22db2e3 commit c07ed15
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/travis/install-mysql-8.0.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,14 @@ set -ex

echo "Starting MySQL 8.0..."

echo -e "[mysqld]\ndefault_authentication_plugin=mysql_native_password" > /tmp/mysql-auth.cnf

sudo docker pull mysql:8.0
sudo docker run \
-d \
-e MYSQL_ALLOW_EMPTY_PASSWORD=yes \
-e MYSQL_DATABASE=doctrine_tests \
-v /tmp/mysql-auth.cnf:/etc/mysql/conf.d/auth.cnf:ro \
-p 33306:3306 \
--name mysql80 \
mysql:8.0
mysql:8.0 \
--default-authentication-plugin=mysql_native_password

sudo docker exec -i mysql80 bash <<< 'until echo \\q | mysql doctrine_tests > /dev/null 2>&1 ; do sleep 1; done'

0 comments on commit c07ed15

Please sign in to comment.