39 lines
807 B
INI
39 lines
807 B
INI
# LJWX MySQL 8.0 配置
|
|
[mysqld]
|
|
# 基础配置
|
|
default_authentication_plugin=mysql_native_password
|
|
sql_mode=STRICT_TRANS_TABLES,NO_ZERO_DATE,NO_ZERO_IN_DATE,ERROR_FOR_DIVISION_BY_ZERO
|
|
|
|
# 字符集配置
|
|
character-set-server=utf8mb4
|
|
collation-server=utf8mb4_unicode_ci
|
|
init_connect='SET NAMES utf8mb4'
|
|
|
|
# 连接配置
|
|
max_connections=200
|
|
max_connect_errors=1000
|
|
wait_timeout=28800
|
|
interactive_timeout=28800
|
|
|
|
# 内存配置
|
|
innodb_buffer_pool_size=256M
|
|
innodb_log_file_size=64M
|
|
innodb_log_buffer_size=16M
|
|
tmp_table_size=64M
|
|
max_heap_table_size=64M
|
|
|
|
# 二进制日志配置
|
|
log_bin=mysql-bin
|
|
binlog_format=row
|
|
expire_logs_days=7
|
|
|
|
# InnoDB配置
|
|
innodb_file_per_table=1
|
|
innodb_flush_log_at_trx_commit=2
|
|
innodb_flush_method=O_DIRECT
|
|
|
|
[client]
|
|
default-character-set=utf8mb4
|
|
|
|
[mysql]
|
|
default-character-set=utf8mb4 |