my.cnf master

[client]
port        = 3306
socket          = /fgn/services/mysql/mysql.sock

[mysqld]
port        = 3306
socket          = /fgn/services/mysql/mysql.sock
skip-locking
key_buffer = 16M
max_allowed_packet = 1M
table_cache = 64
sort_buffer_size = 512K
net_buffer_length = 8K
read_buffer_size = 256K
read_rnd_buffer_size = 512K
myisam_sort_buffer_size = 8M
skip-federated
########################master
server-id    = 1
log-bin=n01-bin
long_query_time = 5
expire_logs_days= 3
########################
thread_concurrency = 8
thread_cache_size = 64
max_connections = 4000
query_cache_size = 256M
open_files_limit = 10000
max_heap_table_size = 64M
innodb_file_per_table
innodb_flush_method=O_DIRECT    
innodb_buffer_pool_size=120M
innodb_additional_mem_pool_size=100M
innodb_support_xa=0    
innodb_thread_concurrency=0
innodb_flush_log_at_trx_commit=1
#######################
interactive_timeout=180
wait_timeout=180
######################

[mysqldump]
quick
max_allowed_packet = 16M

[mysql]
no-auto-rehash

[isamchk]
key_buffer = 20M
sort_buffer_size = 20M
read_buffer = 2M
write_buffer = 2M

[myisamchk]
key_buffer = 20M
sort_buffer_size = 20M
read_buffer = 2M
write_buffer = 2M

[mysqlhotcopy]
interactive-timeout

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