MariaDB / mariadb-docker

Docker Official Image packaging for MariaDB
https://mariadb.org
GNU General Public License v2.0
770 stars 438 forks source link

- fix MYSQL_ROOT_PASSWORD=127.0.0.1 case #266

Closed shurkaxaa closed 4 years ago

shurkaxaa commented 5 years ago

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

yosifkit commented 4 years ago

Sorry for the long tail :bowing_man:

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

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