Commit fc416763 authored by xuezj's avatar xuezj

tke增加mysql镜像文件

parent 84d25a23
FROM mysql:5.6
COPY ./mysql.cnf /etc/mysql/conf.d/
ENV MYSQL_ROOT_PASSWORD=qatest
ENV MYSQL_USER=qa
ENV MYSQL_PASSWORD=qatest
[mysqld]
port = 3306
server-id = 4294967295
skip-slave-start
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
# 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
FROM mysql:5.7
COPY ./mysql.cnf /etc/mysql/conf.d/
ENV MYSQL_ROOT_PASSWORD=qatest
ENV MYSQL_USER=qa
ENV MYSQL_PASSWORD=qatest
\ No newline at end of file
[mysql]
default-character-set = utf8
[mysqld]
character_set_server=utf8
default-storage-engine = innodb
skip-name-resolve
innodb_autoinc_lock_mode = 2
show_compatibility_56=on
log_timestamps=SYSTEM
server_id = 984239105
skip-slave-start
log_bin=mysql-bin
binlog_cache_size = 5M
binlog-format = ROW
explicit_defaults_for_timestamp = true
max_connect_errors = 100
max_allowed_packet = 256M
connect_timeout = 3600
innodb_lock_wait_timeout = 10
slow_query_log = 0
long_query_time = 2
innodb_flush_log_at_trx_commit=1
innodb_log_buffer_size=2M
table_open_cache=2000
key_buffer_size=2M
tmp_table_size=6M
max_connections=4000
max_user_connections=1000
thread_cache_size=120
query_cache_type = 0
query_cache_size = 0
query_cache_min_res_unit = 1K
query_cache_limit = 0
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment