-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Description
Info:
- Docker version (
$ docker --version
): Docker version 17.12.0-ce, build c97c6d6 - Laradock commit (
$ git rev-parse HEAD
): 8323c659ed588ad2d2b02a13dfab651c051302e8 - System info (Mac, PC, Linux): MacOS Sierra 10.12.6
- System info disto/version:
Issue:
Using the mysql and nginx containers, running a migration yields the following error: The server requested authentication method unknown to the client [caching_sha2_password].
This seems to be due to mysql 8.x forcing a new password format. Attempting to force old_passwords=1 from inside the mysql container yields ERROR 1231 (42000): Variable 'old_passwords' can't be set to the value of '1'.
This does occur when trying to run a migration from inside the workspace - where both the version of php and mysql should be controlled by Laradock.
Expected behavior:
Laravel should be able to login to the database and do its thing.
Reproduce:
Pull clean copy of Laradock, set DB_HOST=127.0.0.1 in .env (for reasons unknown to me, DB_HOST=mysql yields SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: nodename nor servname provided, or not known), start the mysql and nginx containers, enter the workspace container and run php artisan migrate.