30 lines
573 B
Plaintext
30 lines
573 B
Plaintext
|
[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
|
|||
|
|
|||
|
# 开启慢查询日志记录
|
|||
|
set global slow_query_log = on
|
|||
|
# 记录阈值,单位s
|
|||
|
set long_query_time = 0.3
|
|||
|
# 设置查询存储方式
|
|||
|
set globle log_output = table
|
|||
|
|
|||
|
|
|||
|
[mysql]
|
|||
|
default-character-set=utf8mb4
|
|||
|
|
|||
|
[client]
|
|||
|
port=3306
|
|||
|
default-character-set=utf8mb4
|