mysql 高级性能配置
kip-grant-tables
character-set-server=utf8
#设置3306端口
##内存表容量
max_heap_table_size=1024M
##临时表容量
tmp_table_size=1024M
port = 3306
wait_timeout=31536000
interactive_timeout=31536000
#设置mysql的安装目录
basedir=“D:\worksoft\mysql-5.7.19-winx64”
#设置mysql数据库的数据的存放目录
datadir=“D:\worksoft\mysql-5.7.19-winx64\data”
#允许最大连接数
max_connections=200
#服务端使用的字符集默认为8比特编码的latin1字符集
#创建新表时将使用的默认存储引擎
sql-mode=“NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION”
default-storage-engine=INNODB
sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES
lower_case_table_names= 2
group_concat_max_len = 10240000
#tmp_table_size=1024M
sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES
group_concat_max_len = 10240000
event_scheduler=ON
max_connections=300
back_log=90
wait_timeout=3600
interactive_timeout=7200
key_buffer_size=256M
#缓存大小
query_cache_size=128M
#开启缓存
query_cache_type=1
max_connect_errors=10
sort_buffer_size=1M
max_allowed_packet=8M
join_buffer_size=1M
thread_cache_size = 64
innodb_buffer_pool_size= 1024M
innodb_flush_log_at_trx_commit=1
innodb_thread_concurrency = 9
innodb_log_buffer_size=16M
read_buffer_size=1M
read_rnd_buffer_size = 4M
bulk_insert_buffer_size=128M
binlog_cache_size=2M
max_binlog_cache_size=20048M
expire_logs_days=7
query_cache_limit=50M
max_binlog_size=512M
server-id=193
log-bin = mysql-bin
log_bin_trust_function_creators=1

浙公网安备 33010602011771号