mysql.ini configuration optimization speed reference

System Configuration: windows 4-core 8G

Since I primarily use the mysql innodb engine, so this configuration is mainly for the need mysiam of self-innodb engine optimization

[Client] 
Port = 3306 
[MySQL] 
default -character- SET = UTF8 

[mysqld] 
Port = 3306 
the basedir = " D: / the MySQL / " 
DATADIR = " D: / the MySQL / Data / " 
Character - SET -server = UTF8
 default = engine--storage INNODB 
# INNODB engine support mode. Modify the default -storage-Engine = INNODB can. 
# If you can not start if INNODB mode, the log files deleted data directory ib beginning of the restart. 

SQL -mode = " NO_AUTO_CREATE_USER, NO_ENGINE_SUBSTITUTION"
max_connections=3600
wait_timeout=5

query_cache_size=0
table_cache=1024
tmp_table_size=64M
event_scheduler = on
thread_cache_size=8
myisam_max_sort_file_size=64G
myisam_sort_buffer_size=35M
key_buffer_size=512M
read_buffer_size=64K
read_rnd_buffer_size=256K
sort_buffer_size=256K

innodb_additional_mem_pool_size=4M
innodb_flush_log_at_trx_commit=2
innodb_log_buffer_size=16M
innodb_buffer_pool_size=2000M
innodb_log_file_size=128M
innodb_thread_concurrency=0

skip-name-resolve

 

Guess you like

Origin www.cnblogs.com/sky-yu/p/11504114.html