/etc/my.cnf

[mysqld]
connect_timeout=10
innodb_buffer_pool_size=512M
innodb_file_per_table=1
innodb_flush_log_at_trx_commit=0
innodb_flush_method=O_DIRECT
innodb_max_purge_lag=100000
innodb_thread_concurrency=16
interactive_timeout=100
join_buffer=4M
key_buffer=256M
log-warnings=2
long_query_time=1
max_allowed_packet=256M
max_connect_errors=10
max_connections=1500
max_heap_table_size=268435456
max_join_size=1000000000
max_tmp_tables=8192
max_user_connections=15
myisam-recover=FORCE
myisam_block_size=4096
myisam_sort_buffer_size=64M
query_cache_limit=32M
query_cache_size=512M
query_cache_type=1
read_buffer_size=16M
read_rnd_buffer_size=16M
skip_external_locking=1
slow_query_log=1
slow_query_log_file=/var/log/slow-queries.log
sort_buffer_size=4M
table_cache=2048
thread_cache_size=32
thread_concurrency=32
tmp_table_size=268435456
tmpdir=/ramdisk/mysql/tmp
wait_timeout=7800

[mysqld_safe]
syslog

你可能感兴趣的:(/etc/my.cnf)