Skip to content

Commit 5d24fc5

Browse files
committed
Keep infoschema user since it is required for 8.0.4
Copying change from mysql@64fd620
1 parent 7b6d186 commit 5d24fc5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

8.0/docker-entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ if [ "$1" = 'mysqld' -a -z "$wantHelp" ]; then
143143
-- or products like mysql-fabric won't work
144144
SET @@SESSION.SQL_LOG_BIN=0;
145145
146-
DELETE FROM mysql.user WHERE user NOT IN ('mysql.session', 'mysql.sys', 'root') OR host NOT IN ('localhost') ;
146+
DELETE FROM mysql.user WHERE user NOT IN ('mysql.infoschema', 'mysql.session', 'mysql.sys', 'root') OR host NOT IN ('localhost') ;
147147
SET PASSWORD FOR 'root'@'localhost'=PASSWORD('${MYSQL_ROOT_PASSWORD}') ;
148148
GRANT ALL ON *.* TO 'root'@'localhost' WITH GRANT OPTION ;
149149
${rootCreate}

0 commit comments

Comments
 (0)