[root@server~]# cat /etc/my.cnf
# For advice on how to change settings please see
# http://dev.mysql.com/doc/refman/5.6/en/server-configuration-defaults.html
[mysqld]
#
# 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
server_id=12345
#
# 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
datadir=/data/mysql
socket=/var/lib/mysql/mysql.sock
innodb_buffer_pool_size=7G
# ************* Added for replication *****************************
skip_name_resolve
#skip_slave_start
slave_type_conversions="ALL_LOSSY,ALL_NON_LOSSY,ALL_SIGNED,ALL_UNSIGNED"
relay_log=mysql-relay
relay_log_index=relay-log-index
binlog_format=mixed
replicate-ignore-db=mysql
replicate-ignore-db=information_schema
replicate-ignore-db=performance_schema
replicate_do_db=ratingreview_db
replicate_do_db=referraldb
slave-skip-errors = 1032,1062,1677
max_connections=10000
innodb_file_per_table=1
max_allowed_packet=100M
max_connect_errors=10000
log_bin=mysql-bin
log_bin_index= bin-log-index
sync_binlog=1
expire_logs_days=10
log_bin_trust_function_creators=1
binlog_format=MIXED
lower_case_table_names=1
# ********************************************************************
# Disabling symbolic-links is recommended to prevent assorted security risks
symbolic-links=0
# Recommended in standard MySQL setup
sql_mode=NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
[mysqld_safe]
log-error=/data/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
No comments:
Post a Comment