os+mysql+my.cnf
CentOS 5.3 + MySQL Server 5.1.30 +
[client]
port = 3306
socket = /var/lib/mysql/mysql.sock
default-character-set=tis620
[mysqld]
default-storage-engine=INNODB
default_table_type = INNODB
port = 3306
socket = /var/lib/mysql/mysql.sock
skip-locking
key_buffer = 2048M
max_allowed_packet = 128M
table_cache = 2100
sort_buffer_size = 1M
read_buffer_size = 1M
read_rnd_buffer_size = 1M
max_heap_table_size = 2048M
myisam_sort_buffer_size = 512M
thread_cache_size = 800
query_cache_limit = 2M
query_cache_size= 1024M
query_cache_type = 1
thread_concurrency = 8
default-character-set=tis620
skip-name-resolve
skip-character-set-client-handshake
join_buffer_size = 2M
init_connect = 'SET NAMES tis620'
innodb_file_per_table
innodb_data_home_dir = /var/lib/mysql/
innodb_data_file_path = ibdata1:100M:autoextend
innodb_log_group_home_dir = /var/lib/mysql/
innodb_buffer_pool_size = 4096M
innodb_additional_mem_pool_size = 24M
innodb_log_file_size = 512M
innodb_log_buffer_size = 2M
innodb_flush_log_at_trx_commit = 1
innodb_lock_wait_timeout = 50
innodb_thread_concurrency = 0
innodb_open_files = 2100
max_connections = 300
big-tables
[mysqldump]
quick
max_allowed_packet = 16M
allow-keywords
[mysql]
no-auto-rehash
default-character-set=tis620
[isamchk]
key_buffer = 512M
sort_buffer_size = 512M
read_buffer = 4M
write_buffer = 4M
[myisamchk]
key_buffer = 1000M
sort_buffer_size = 512M
read_buffer = 4M
write_buffer = 4M
[mysqlhotcopy]
interactive-timeout