mysql -binlog

lock tables tname read/write;
unlock tables;
$ cat /etc/my.cnf
[mysqld]
log-bin=mysql-bin
binlog-format=ROW
server_id=1
flush logs;
show master status;
sudo mysqlbinlog --no-defaults -v --base64-output=DECODE-ROWS /usr/local/mysql/data/binlog.number

你可能感兴趣的:(零碎知识)