add docker for local and production
This commit is contained in:
30
docker/mysql.cnf
Normal file
30
docker/mysql.cnf
Normal file
@@ -0,0 +1,30 @@
|
||||
[mysqld]
|
||||
# General settings
|
||||
default-authentication-plugin = mysql_native_password
|
||||
character-set-server = utf8mb4
|
||||
collation-server = utf8mb4_unicode_ci
|
||||
|
||||
# Connection settings
|
||||
max_connections = 200
|
||||
connect_timeout = 60
|
||||
wait_timeout = 600
|
||||
interactive_timeout = 600
|
||||
|
||||
# Buffer settings
|
||||
innodb_buffer_pool_size = 256M
|
||||
innodb_log_file_size = 64M
|
||||
innodb_log_buffer_size = 16M
|
||||
innodb_flush_log_at_trx_commit = 1
|
||||
|
||||
# Query cache
|
||||
query_cache_type = 1
|
||||
query_cache_size = 32M
|
||||
query_cache_limit = 2M
|
||||
|
||||
# Logging
|
||||
slow_query_log = 1
|
||||
slow_query_log_file = /var/log/mysql/slow.log
|
||||
long_query_time = 2
|
||||
|
||||
# Security
|
||||
local_infile = 0
|
||||
Reference in New Issue
Block a user