[mysqld]
####### CACHES AND LIMITS #########
sort_buffer_size = 2M
join_buffer_size = 2M
read_buffer_size = 4M
read_rnd_buffer_size = 4M
thread_stack = 256K
binlog_cache_size = 2M
tmp_table_size = 32M
max_heap_table_size = 32M
max_allowed_packet = 128M
key_buffer_size = 32M
max_connect_errors = 1000
max_user_connections = 500
max_connections = 1500 //mysql的最大连接数
thread_cache_size = 32
table_definition_cache = 1400
table_open_cache = 2000
table_open_cache_instances = 4
open_files_limit = 65535 //mysql打开文件数限制
interactive_timeout = 600
wait_timeout = 600