Skip to content

Commit a365126

Browse files
committed
Bug#26994759 HANDLE NEW MYSQL.INFOSCHEMA USER IN DOCKER IMAGES
Include new user in list of users not to erase
1 parent a7f1d48 commit a365126

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

template/docker-entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ if [ "$1" = 'mysqld' ]; then
116116
GRANT PROXY ON ''@'' TO 'root'@'${MYSQL_ROOT_HOST}' WITH GRANT OPTION ;"
117117
fi
118118
"${mysql[@]}" <<-EOSQL
119-
DELETE FROM mysql.user WHERE user NOT IN ('mysql.session', 'mysql.sys', 'root') OR host NOT IN ('localhost');
119+
DELETE FROM mysql.user WHERE user NOT IN ('mysql.infoschema', 'mysql.session', 'mysql.sys', 'root') OR host NOT IN ('localhost');
120120
CREATE USER 'healthchecker'@'localhost' IDENTIFIED BY 'healthcheckpass';
121121
${ROOTCREATE}
122122
FLUSH PRIVILEGES ;

0 commit comments

Comments
 (0)