2019-07-05 16:33:40 +08:00
|
|
|
|
[mysqld]
|
|
|
|
|
port=3306
|
|
|
|
|
max_connections=200
|
|
|
|
|
max_connect_errors=10
|
|
|
|
|
character-set-server=utf8mb4
|
|
|
|
|
default_authentication_plugin=mysql_native_password
|
|
|
|
|
# 忽略大小写
|
|
|
|
|
lower_case_table_names=1
|
|
|
|
|
innodb_buffer_pool_size=128M
|
|
|
|
|
tmp_table_size=32M
|
|
|
|
|
key_buffer_size=32M
|
|
|
|
|
|
|
|
|
|
# 配置中文分词
|
|
|
|
|
#ngram_token_size=2
|
|
|
|
|
#ft_min_word_len=2
|
|
|
|
|
|
|
|
|
|
# 开启慢查询日志记录
|
2019-07-05 17:00:22 +08:00
|
|
|
|
slow_query_log = 1
|
2019-07-05 16:33:40 +08:00
|
|
|
|
# 记录阈值,单位s
|
2019-07-05 17:00:22 +08:00
|
|
|
|
long_query_time = 0.3
|
2019-07-05 16:33:40 +08:00
|
|
|
|
# 设置查询存储方式
|
2019-07-05 17:00:22 +08:00
|
|
|
|
log_output = table
|
2019-07-05 16:33:40 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[mysql]
|
|
|
|
|
default-character-set=utf8mb4
|
|
|
|
|
|
|
|
|
|
[client]
|
|
|
|
|
port=3306
|
|
|
|
|
default-character-set=utf8mb4
|