mysql slave 配置备份

2010-06-14 xiao H Posted in 服务器应用

mysql slave 配置备份
[client]
port = 3306
socket = /tmp/mysql.sock


[mysqld]
port = 3306
socket = /tmp/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

################### slave ##########################
server-id = 2
master-host=192.168.1.221
master-user=reply
master-password=reply123456
replicate-do-db =mydns
log-bin=n01-bin
slave-net-timeout=60

####################################################

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,u

标签:,

还没有评论呢。

我来说两句

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>