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
2dfbd3be
Commit
2dfbd3be
authored
Dec 04, 2019
by
智勇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mysql8
parent
da46be95
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
66 additions
and
2 deletions
+66
-2
mysql.cnf
tke/mysql5.7/mysql.cnf
+1
-2
Dockerfile
tke/mysql8/Dockerfile
+10
-0
initDb.sql
tke/mysql8/initDb.sql
+2
-0
mysql.cnf
tke/mysql8/mysql.cnf
+53
-0
No files found.
tke/mysql5.7/mysql.cnf
View file @
2dfbd3be
...
@@ -43,5 +43,4 @@ thread_cache_size = 120
...
@@ -43,5 +43,4 @@ thread_cache_size = 120
query_cache_type = 0
query_cache_type = 0
query_cache_size = 0
query_cache_size = 0
query_cache_min_res_unit = 1K
query_cache_min_res_unit = 1K
query_cache_limit = 0
query_cache_limit = 0
\ No newline at end of file
tke/mysql8/Dockerfile
0 → 100644
View file @
2dfbd3be
FROM
mysql:8.0
COPY
./mysql.cnf /etc/mysql/conf.d/
ENV
MYSQL_ROOT_PASSWORD=qatest
ENV
MYSQL_USER=qa
ENV
MYSQL_PASSWORD=qatest
#把要执行的sql文件放到/docker-entrypoint-initdb.d/目录下,容器会自动执行这个sql
COPY
./initDb.sql /docker-entrypoint-initdb.d/
tke/mysql8/initDb.sql
0 → 100644
View file @
2dfbd3be
-- 授权qa
GRANT
ALL
PRIVILEGES
ON
*
.
*
TO
'qa'
@
'%'
WITH
GRANT
OPTION
;
\ No newline at end of file
tke/mysql8/mysql.cnf
0 → 100644
View file @
2dfbd3be
[mysqld]
port = 3306
server-id = 4294967295
skip-slave-start
default-time-zone='+08:00'
table_definition_cache=400
performance_schema_max_table_instances=400
table_open_cache=256
slow_query_log = 0
log-bin=mysql-bin
binlog-format = ROW
max_binlog_size = 200M
expire_logs_days = 7
explicit_defaults_for_timestamp = true
character_set_server = utf8
skip-name-resolve
max_connect_errors = 100
max_allowed_packet = 20M
connect_timeout = 3600
max_connections = 1000
# wait_timeout = 86400
# interactive_timeout = 86400
innodb_lock_wait_timeout = 10
long_query_time = 2
innodb_flush_log_at_trx_commit=1
# 默认128M
# innodb_buffer_pool_size=48G
# 默认8M
innodb_log_buffer_size=2M
# 默认8M
# key_buffer_size=20M
# 默认16M
# tmp_table_size=16M
default_authentication_plugin=mysql_native_password
\ 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