-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Closed
Description
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
Metadata
Metadata
Assignees
Labels
No labels