Skip to content

Commit a28a66e

Browse files
authored
Merge pull request #2 from nelsonq/enable-root-login
Allow root to log in from outside of docker
2 parents e636ecb + 0126504 commit a28a66e

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)