slave my.cnf

[mysqld]
basedir=/usr/local/mysql
datadir=/data01/mysql
socket=/data01/mysql/mysql.sock
user=mysql

slow_query_log=ON
long_query_time=2

server-id=136
log-bin=/data01/mysqllog/binlog/mysql-bin
binlog_format=MIXED
max_binlog_size = 512M
binlog_cache_size = 128K

character-set-server=utf8
default-storage-engine=INNODB 
innodb_file_per_table=1 

symbolic-links=0
max_connections=1024
log-error=/var/log/mysql/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid

relay-log-purge=1
replicate-ignore-db = mysql
replicate-ignore-db = information_schema

skip-slave-start
relay_log_info_repository = TABLE  
master_info_repository    = TABLE  
relay_log_recovery        = 1

sync_relay_log = 1
sync_master_info = 1


# Remove leading # and set to the amount of RAM for the most important data
# cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%.
# innodb_buffer_pool_size = 128M

# Remove leading # to turn on a very important data integrity option: logging
# changes to the binary log between backups.
# log_bin

# These are commonly set, remove the # and set as required.
# basedir = .....
# datadir = .....
# port = .....
# server_id = .....
# socket = .....

# Remove leading # to set options mainly useful for reporting servers.
# The server defaults are faster for transactions and fast SELECTs.
# Adjust sizes as needed, experiment to find the optimal values.
# join_buffer_size = 128M
# sort_buffer_size = 2M
# read_rnd_buffer_size = 2M 

sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES 
read_only

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