Mysql5.7.30_配置参数
# sort_buffer_size = 2M
# read_rnd_buffer_size = 2M
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
[mysql]
default-character-set=utf8
[mysqld]
server-id=1
log_bin=mysql-bin
binlog-ignore-db=mysql
binlog-ignore-db=information_schema
binlog-ignore-db=performance_schema
binlog-ignore-db=jinan_pres
binlog-ignore-db=monitor
binlog-ignore-db=monitor_test
binlog-ignore-db=sys
binlog-do-db=plat_test
binlog-do-db=yfz_prescription
binlog_format=MIXED
ft_min_word_len=1
ngram_token_size=1
innodb_buffer_pool_size = 2G
slow_query_log = ON
slow_query_log_file = /var/lib/mysql/query-slow.log
long_query_time = 6
log_output = FILE
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
default-storage-engine=INNODB
character_set_server=utf8
sql-mode=STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
# Disabling symbolic-links is recommended to prevent assorted security risks
symbolic-links=0
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
[client]
user=XXXX
password=XXXX