Skip to content

Commit

Permalink
Merge pull request docker-library#381 from infosiftr/infoschema
Browse files Browse the repository at this point in the history
Keep infoschema user since it is required for 8.0.4
  • Loading branch information
tianon authored Feb 22, 2018
2 parents 7b6d186 + 5d24fc5 commit bed3b34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 8.0/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ if [ "$1" = 'mysqld' -a -z "$wantHelp" ]; then
-- or products like mysql-fabric won't work
SET @@SESSION.SQL_LOG_BIN=0;
DELETE FROM mysql.user WHERE user NOT IN ('mysql.session', 'mysql.sys', 'root') OR host NOT IN ('localhost') ;
DELETE FROM mysql.user WHERE user NOT IN ('mysql.infoschema', 'mysql.session', 'mysql.sys', 'root') OR host NOT IN ('localhost') ;
SET PASSWORD FOR 'root'@'localhost'=PASSWORD('${MYSQL_ROOT_PASSWORD}') ;
GRANT ALL ON *.* TO 'root'@'localhost' WITH GRANT OPTION ;
${rootCreate}
Expand Down

0 comments on commit bed3b34

Please sign in to comment.