Skip to content

Commit c22ce30

Browse files
committed
Bug#79374 user mysql.sys is removed from docker deployment
The user is needed for the sys schema. Changed script to preserve it.
1 parent 90504e5 commit c22ce30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

5.7/docker-entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ if [ "$1" = 'mysqld' ]; then
5050
-- What's done in this file shouldn't be replicated
5151
-- or products like mysql-fabric won't work
5252
SET @@SESSION.SQL_LOG_BIN=0;
53-
DELETE FROM mysql.user ;
53+
DELETE FROM mysql.user where user != 'mysql.sys';
5454
CREATE USER 'root'@'%' IDENTIFIED BY '${MYSQL_ROOT_PASSWORD}' ;
5555
GRANT ALL ON *.* TO 'root'@'%' WITH GRANT OPTION ;
5656
DROP DATABASE IF EXISTS test ;

0 commit comments

Comments
 (0)