mysql binlog


  1. vi /etc/my.cnf

 添加log-bin=mysqlbin-log


2.查看binlog日志:

 /usr/local/mysql/bin/mysqlbinlog  /usr/local/mysql/data/mysqlbin-log.000001  > /root/binlog.txt


/usr/local/mysql/bin/mysqlbinlog  /usr/local/mysql/data/mysqlbin-log.000001 | tail

purge binary logs to 'mysql-bin.000018';

登陆

/usr/local/mysql/bin/mysql -uroot -pw***** test;


data -R


data -s



你可能感兴趣的:(mysql,local)