Bug #87605 | MySQL Cluster entrypoint.sh does not handle MYSQL_PASSWORD as file path | ||
---|---|---|---|
Submitted: | 30 Aug 2017 13:15 | Modified: | 30 Aug 2017 13:25 |
Reporter: | Sean McDowell | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Package Repos | Severity: | S3 (Non-critical) |
Version: | OS: | Any | |
Assigned to: | CPU Architecture: | Any |
[30 Aug 2017 13:15]
Sean McDowell
[31 Aug 2017 6:35]
Lars Tangvald
Hi, The MYSQL_USER|PASSWORD|DATABASE options are largely present for backwards-compatibility, as we recommend you instead use .sh or .sql scripts mounted to the /docker-entrypoint-initdb.d/ directory. If you create some init.sql that creates your users, databases, etc. Then add it to a directory that's bind-mounted to /docker-entrypoint-initdb.d/ at run time, it will automatically be executed during initialization of a new database. Does this cover your use case?