[mysqld]
wait-timeout = 10000
skip-name-resolve
skip-grant-tables
# The TCP/IP Port the MySQL Server will listen on
max_connections=1510
query_cache_size=120M
table_cache=3020
tmp_table_size=120M
thread_cache_size=64
myisam_max_sort_file_size=100G
myisam_sort_buffer_size=64M
key_buffer_size=128M
read_buffer_size=4M
read_rnd_buffer_size=10M
sort_buffer_size=120M
#*** INNODB Specific options ***
# Use this option if you have a MySQL server with InnoDB support enabled
# but you do not plan to use it. This will save memory and disk space
# and speed up some things.
#skip-innodb
# Additional memory pool that is used by InnoDB to store metadata
# information. If InnoDB requires more memory for this purpose it will
# start to allocate it from the OS. As this is fast enough on most
# recent operating systems, you normally do not need to change this
# value. SHOW INNODB STATUS will display the current amount used.
innodb_additional_mem_pool_size=10M
innodb_flush_log_at_trx_commit=1
innodb_log_buffer_size=4M
innodb_buffer_pool_size=400M
innodb_log_file_size=38M
innodb_thread_concurrency=8 作者: kider 时间: 2010-10-21 15:16
interactive_timeout
wait_timeout
把这两个参数值调大,单位秒。作者: qq41156210 时间: 2010-10-22 16:51