16G内存Mysql服务器配置文件(实例)

[mysqld]

port = 3306
socket = /opt/mysql/mysql.sock
skip-locking
skip-name-resolve
back_log=100
key_buffer_size = 2048M
query_cache_size = 128M
query_cache_limit = 2M #default=1M
query_cache_min_res_unit = 2k #default=4K
 
max_allowed_packet = 16M
table_cache = 3072
 
tmp_table_size = 1024M #default=16M
max_heap_table_size = 384M #default=16M
 
read_buffer_size = 8M
read_rnd_buffer_size = 32M
 
sort_buffer_size = 256M
join_buffer_size = 32M
myisam_sort_buffer_size = 256M
thread_cache_size = 80 #default=0
thread_stack = 192K #default=192K
 
# Try number of CPU's*2 for thread_concurrency
thread_concurrency = 16 #default=10
connect_timeout = 30
#interactive timeout = 600
max_connection = 350
max_connect_errors = 30
wait_timeout = 30

你可能感兴趣的:(mysql,数据库,mysql,linux,职场,调优,休闲)