sail: Laravel Sail, MySql container won't start since version 8.0.23 (8.0.22 works fine)
- Laravel Version: 8.12
- sail-8.0/app
Description:
The MySql docker image received an update 17 hours ago. Laravel Sail is unable to start the MySql container, is produces this error:
mysql_1 | 2021-03-18 13:32:56+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.23-1debian10 started.
mysql_1 | 2021-03-18 13:32:56+00:00 [ERROR] [Entrypoint]: MYSQL_USER="root", MYSQL_PASSWORD cannot be used for the root user
mysql_1 | Use one of the following to control the root user password:
mysql_1 | - MYSQL_ROOT_PASSWORD
mysql_1 | - MYSQL_ALLOW_EMPTY_PASSWORD
mysql_1 | - MYSQL_RANDOM_ROOT_PASSWORD
Setting the MySql image to 8.0.22 in docker-compose.yml fixes the issue. First remove installed containers:
sail down --rmi all -v
Then update docker-compose.yml, and set mysql versions to previous version:
mysql:
image: 'mysql:8.0.22'
Run Sail again to download images and rebuild the containers
sail up
Steps To Reproduce:
Follow official Sail installation instructions
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 18 (9 by maintainers)
don’t use DB_USERNAME=root use a different user name
use something like DB_USERNAME=myuser
https://github.com/docker-library/mysql/issues/750
You need to
docker volume rmthe existing MySQL volume.