MySQL设置binlog

[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

log-bin = /usr/local/mysql/log/binlog

log-bin-index = /usr/local/mysql/log/binlogindex

max_binlog_size = 4096

binlog_format = ROW


# These are commonly set, remove the # and set as required.

# basedir = .....

# datadir = /usr/local/mysql/data

# port = .....

# server_id = .....

socket = /tmp/mysql.sock


你可能感兴趣的:(mysql)