mysql恢复 报错_Mysql 数据恢复报错
1.測試mysql binlog 數(shù)據(jù)恢復(fù)功能,我的mysql版本是5.7.17
2.刪了數(shù)據(jù)之后,執(zhí)行show binlog events 命令得到如下記錄
3.找到開始刪除和結(jié)束刪除的位置,然后執(zhí)行恢復(fù)命令:mysqlbinlog --no-defaults --start-position=8991 --stop-position=2904685 /Users/guojiaju/Documents/mysql_log/log_bin.000001 | mysql -u root -p
4.返回給我一個錯誤信息 ,ERROR 1790 (HY000) at line 51706: @@SESSION.GTID_NEXT cannot be changed by a client that owns a GTID. The client owns ANONYMOUS. Ownership is released on COMMIT or ROLLBACK.
5.如果我不加上結(jié)束位置:mysqlbinlog --no-defaults --start-position=8991 /Users/guojiaju/Documents/mysql_log/log_bin.000001 | mysql -u root -p
這樣不會報錯,但是數(shù)據(jù)沒有恢復(fù)
6.執(zhí)行這個命令 mysqlbinlog --start-position=8991 /Users/guojiaju/Documents/mysql_log/log_bin.000001 > /Users/guojiaju/Documents/mysql_log/test.sql 得到sql文件執(zhí)行成功,但是數(shù)據(jù)庫依然沒有數(shù)據(jù)
7.請知道的大神給我指點一二,謝謝~~
總結(jié)
以上是生活随笔為你收集整理的mysql恢复 报错_Mysql 数据恢复报错的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 北京环球影城未来水世界表演多长时间
- 下一篇: 北京环球影城对外开放时间