slave my.cnf

来源:互联网 发布:全知之眼纹身 编辑:程序博客网 时间:2024/05/11 12:34
[mysqld]basedir=/usr/local/mysqldatadir=/data01/mysqlsocket=/data01/mysql/mysql.sockuser=mysqlslow_query_log=ONlong_query_time=2server-id=136log-bin=/data01/mysqllog/binlog/mysql-binbinlog_format=MIXEDmax_binlog_size = 512Mbinlog_cache_size = 128Kcharacter-set-server=utf8default-storage-engine=INNODB innodb_file_per_table=1 symbolic-links=0max_connections=1024log-error=/var/log/mysql/mysqld.logpid-file=/var/run/mysqld/mysqld.pidrelay-log-purge=1replicate-ignore-db = mysqlreplicate-ignore-db = information_schemaskip-slave-startrelay_log_info_repository = TABLE  master_info_repository    = TABLE  relay_log_recovery        = 1sync_relay_log = 1sync_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

0 0
原创粉丝点击