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
When using the docker image to start without an existing database, the container's entrypoint.sh script tries to call the mysqld binary to create the database. This fails in versions later than 5.7.5 because the script starts by calling mysqld --verbose --help to get the configured datadir and when that runs and there is no database, it initializes it automatically.
When the script then calls --initialize, that fails with the error:
[ERROR] --initialize specified but the data directory has files in it. Aborting.
The workaround is to run mysql:5.7.5 to create the database, then upgrade to a later image, which will work because the database already exists.
aktech, marudy, sosuren, AndresPineros, industral and 15 more