You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The docker-entrypoint.sh initialization script will create the database (mysql_install_db --datadir="$DATADIR" --rpm --keep-my-cnf) with the default InnoDB buffer pool (48 MB). It will then start mysqld and wait 30 seconds for it to initialize. This initialization includes recreating the buffer pool, which takes longer than 30 seconds in TravisCI (failed build). docker-entrypoint.sh exits early, and the root password remains unset. This leads to the follow-on errors, such as ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES) and Host '172.18.0.9' is not allowed to connect to this MySQL server.
This does not happen when a configuration file is used, because mysql_install_db will initialize with the desired InnoDB buffer pool size.
Some options are:
Pass options to mysql_install_db as well
Increase the timeout from 30 seconds to a larger value
The text was updated successfully, but these errors were encountered:
I'm switching from a configuration file to a command line configuration for MySQL 5.6, using this
docker-compose.yml
section:The
docker-entrypoint.sh
initialization script will create the database (mysql_install_db --datadir="$DATADIR" --rpm --keep-my-cnf
) with the default InnoDB buffer pool (48 MB). It will then startmysqld
and wait 30 seconds for it to initialize. This initialization includes recreating the buffer pool, which takes longer than 30 seconds in TravisCI (failed build).docker-entrypoint.sh
exits early, and the root password remains unset. This leads to the follow-on errors, such asERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
andHost '172.18.0.9' is not allowed to connect to this MySQL server
.This does not happen when a configuration file is used, because
mysql_install_db
will initialize with the desired InnoDB buffer pool size.Some options are:
mysql_install_db
as wellThe text was updated successfully, but these errors were encountered: