Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

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

- fix MYSQL_ROOT_PASSWORD=127.0.0.1 case #266

Closed

Conversation

shurkaxaa
Copy link

Now DB initialization failed as CREATE USER operation fails because
of https://bugs.mysql.com/bug.php?id=28331
In short following sequence fails as FLUSH PRIVILEGES required in the middle:
DELETE FROM mysql.user...;
CREATE USER ...;
As 127.0.0.1 already present container failed in related part of entrypoint

  Now DB initialization failed as CREATE USER operation fails because
  of https://bugs.mysql.com/bug.php?id=28331
  In short following sequence fails as FLUSH PRIVILEGES required in the middle:
      DELETE FROM mysql.user...;
      CREATE USER ...;
  As 127.0.0.1 already present container failed in reqlated part of entrypoint
@yosifkit
Copy link
Contributor

yosifkit commented Mar 3, 2020

Sorry for the long tail 🙇‍♂️

This is basically a duplicate of docker-library/mysql#549, which was added to docker-library/mysql#471 and then copied to MariaDB images in #271. So this should be fixed now:

https://github.com/docker-library/mariadb/blob/17fbf28e55c357c52d5025c50d65f2ab2ab508e2/docker-entrypoint.sh#L231-L235

@yosifkit yosifkit closed this Mar 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants