添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement . We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hi, thanks for this useful image and your work ! 😃

Problem

mysql-db      | 2019-08-01T09:37:02.135128786Z MySQL init process in progress...
mysql-db      | 2019-08-01T09:37:03.149603593Z MySQL init process in progress...
mysql-db      | 2019-08-01T09:37:21.345066347Z MySQL init process in progress...
mysql-db      | 2019-08-01T09:37:22.347455022Z MySQL init process failed.

Solution / fix

Do not define MYSQL_PWD environment variable in your docker configuration during the init process.

Entrypoint

Maybe a fix/trick could be done in the entrypoint to break the MYSQL_PWD variable value before init process and redefine it just before starting mysqld.

Thx. Bye

This method of specifying your MySQL password must be considered extremely insecure and should not be used. Some versions of ps include an option to display the environment of running processes. On some systems, if you set MYSQL_PWD, your password is exposed to any other user who runs ps. Even on systems without such a version of ps, it is unwise to assume that there are no other methods by which users can examine process environments.

- https://dev.mysql.com/doc/refman/8.0/en/password-security-user.html

We are not going to adjust the entrypoint script to block a bad env var since that would open the gates for possibly doing the same for all env vars used by mysql and mysqld.