23 lines
473 B
Plaintext
23 lines
473 B
Plaintext
|
[mysqld]
|
||
|
log_error = /var/log/mysql/error.log
|
||
|
slow_query_log = 1
|
||
|
slow_query_log_file = /var/log/mysql/slow.log
|
||
|
long_query_time = 2
|
||
|
|
||
|
# 使用 UTF-8 編碼
|
||
|
character-set-server=utf8mb4
|
||
|
collation-server=utf8mb4_unicode_ci
|
||
|
|
||
|
# 提升最大連線數
|
||
|
max_connections=200
|
||
|
|
||
|
# InnoDB 設定
|
||
|
default-storage-engine=InnoDB
|
||
|
innodb_file_per_table=1
|
||
|
innodb_buffer_pool_size=256M
|
||
|
|
||
|
# 安全 SQL 模式
|
||
|
sql_mode=STRICT_TRANS_TABLES,NO_ENGINE_SUBSTITUTION
|
||
|
|
||
|
# 時區
|
||
|
default_time_zone='+08:00'
|