fix permission and trouble on mysql docker

This commit is contained in:
root
2025-06-11 13:43:24 +07:00
parent f92655e3e2
commit 9b25a772a6
8 changed files with 165 additions and 128 deletions

View File

@@ -4,27 +4,27 @@ 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
# Performance settings
innodb_buffer_pool_size = 256M
innodb_log_file_size = 64M
innodb_log_buffer_size = 16M
innodb_flush_log_at_trx_commit = 1
innodb_flush_method = O_DIRECT
# Query cache
query_cache_type = 1
query_cache_size = 32M
query_cache_limit = 2M
# Connection settings
max_connections = 200
max_allowed_packet = 16M
# Logging
general_log = 0
slow_query_log = 1
slow_query_log_file = /var/log/mysql/slow.log
long_query_time = 2
# Security
local_infile = 0
sql_mode = STRICT_TRANS_TABLES,NO_ZERO_DATE,NO_ZERO_IN_DATE,ERROR_FOR_DIVISION_BY_ZERO
[mysql]
default-character-set = utf8mb4
[client]
default-character-set = utf8mb4