Closed
Description
If mysql .cnf
is added when container starts, and it has a [client]
section, incorrect password will be used in the init script.
[client]
user=root
password=unprotected
database=xxx_development
then init will fail like this:
mysql_1 | MySQL init process in progress...
mysql_1 | 2018-09-13T02:53:44.017882Z 29 [Note] Access denied for user 'root'@'localhost' (using password: YES)
mysql_1 | MySQL init process in progress...
mysql_1 | 2018-09-13T02:53:45.025505Z 30 [Note] Access denied for user 'root'@'localhost' (using password: YES)
mysql_1 | MySQL init process in progress...
mysql_1 | 2018-09-13T02:53:46.032175Z 31 [Note] Access denied for user 'root'@'localhost' (using password: YES)
mysql_1 | MySQL init process in progress...
mysql_1 | MySQL init process failed.
We should probably explicitly use password here:
mysql/5.7/docker-entrypoint.sh
Line 123 in b39f1e5