《Mysql實(shí)例使用bin-log日志還原數(shù)據(jù)庫的例子》要點(diǎn):
本文介紹了Mysql實(shí)例使用bin-log日志還原數(shù)據(jù)庫的例子,希望對(duì)您有用。如果有疑問,可以聯(lián)系我們。
MYSQL數(shù)據(jù)庫1、查看是否啟用了日志:
show variables like 'log_bin';
MYSQL數(shù)據(jù)庫2、查看當(dāng)前日志文件名:
show master status;
MYSQL數(shù)據(jù)庫3、查找當(dāng)前有哪些二進(jìn)制日志文件:??
mysql> show binary logs;
MYSQL數(shù)據(jù)庫4、查看mysql日志:
mysqlbinlog mysql-bin.000001
mysqlbinlog mysql-bin.000006 > /root/bbx.log
MYSQL數(shù)據(jù)庫5、使用新的binlog日志:(更新數(shù)據(jù)庫日志)
轉(zhuǎn)載請(qǐng)注明本頁網(wǎng)址:
http://www.fzlkiss.com/jiaocheng/5368.html