Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qg-dockerfiles
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
QA
qg-dockerfiles
Commits
a225ce4d
Commit
a225ce4d
authored
Apr 22, 2019
by
xuezj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加qa授权
parent
bf813439
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
1 deletion
+11
-1
Dockerfile
tke/mysql5.6/Dockerfile
+3
-0
initDb.sql
tke/mysql5.6/initDb.sql
+2
-0
Dockerfile
tke/mysql5.7/Dockerfile
+4
-1
initDb.sql
tke/mysql5.7/initDb.sql
+2
-0
No files found.
tke/mysql5.6/Dockerfile
View file @
a225ce4d
...
@@ -5,3 +5,6 @@ COPY ./mysql.cnf /etc/mysql/conf.d/
...
@@ -5,3 +5,6 @@ COPY ./mysql.cnf /etc/mysql/conf.d/
ENV
MYSQL_ROOT_PASSWORD=qatest
ENV
MYSQL_ROOT_PASSWORD=qatest
ENV
MYSQL_USER=qa
ENV
MYSQL_USER=qa
ENV
MYSQL_PASSWORD=qatest
ENV
MYSQL_PASSWORD=qatest
#把要执行的sql文件放到/docker-entrypoint-initdb.d/目录下,容器会自动执行这个sql
COPY
./initDb.sql /docker-entrypoint-initdb.d/
tke/mysql5.6/initDb.sql
0 → 100644
View file @
a225ce4d
-- 授权qa
GRANT
ALL
PRIVILEGES
ON
*
.
*
TO
'qa'
@
'%'
IDENTIFIED
BY
'qatest'
\ No newline at end of file
tke/mysql5.7/Dockerfile
View file @
a225ce4d
...
@@ -4,4 +4,7 @@ COPY ./mysql.cnf /etc/mysql/conf.d/
...
@@ -4,4 +4,7 @@ COPY ./mysql.cnf /etc/mysql/conf.d/
ENV
MYSQL_ROOT_PASSWORD=qatest
ENV
MYSQL_ROOT_PASSWORD=qatest
ENV
MYSQL_USER=qa
ENV
MYSQL_USER=qa
ENV
MYSQL_PASSWORD=qatest
ENV
MYSQL_PASSWORD=qatest
\ No newline at end of file
#把要执行的sql文件放到/docker-entrypoint-initdb.d/目录下,容器会自动执行这个sql
COPY
./initDb.sql /docker-entrypoint-initdb.d/
tke/mysql5.7/initDb.sql
0 → 100644
View file @
a225ce4d
-- 授权qa
GRANT
ALL
PRIVILEGES
ON
*
.
*
TO
'qa'
@
'%'
IDENTIFIED
BY
'qatest'
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment