Skip to content

- fix MYSQL_ROOT_PASSWORD=127.0.0.1 case #266

New issue

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

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

Already on GitHub? # to your account

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
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants