Skip to content

Commit 0126504

Browse files
committed
Allow root to log in from outside of docker
Include 'root'@'%' to allow root to login from the docker host.
1 parent e636ecb commit 0126504

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

5.7rc/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ MAINTAINER Hua(Nelson) Qiao
44

55
ADD ./custom.cnf /etc/mysql/conf.d/
66

7+
COPY ./sql-scripts/ /docker-entrypoint-initdb.d/
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'password' WITH GRANT OPTION;
2+
FLUSH PRIVILEGES;

0 commit comments

Comments
 (0)