《Mysql实例使用bin-log日志还原数据库的例子》要点:
本文介绍了Mysql实例使用bin-log日志还原数据库的例子,希望对您有用。如果有疑问,可以联系我们。
MYSQL数据库1、查看是否启用了日志:
show variables like 'log_bin';
MYSQL数据库2、查看当前日志文件名:
show master status;
MYSQL数据库3、查找当前有哪些二进制日志文件:
mysql> show binary logs;
MYSQL数据库4、查看mysql日志:
mysqlbinlog mysql-bin.000001
mysqlbinlog mysql-bin.000006 > /root/bbx.log
MYSQL数据库5、使用新的binlog日志:(更新数据库日志)
转载请注明本页网址:
http://www.vephp.com/jiaocheng/5368.html