首页 / 数据库 / MySQL / MySQL主从失败使用bin-log恢复
MySQL主从失败的时候先查看从数据库show slave statusG记住bin-log的pos和binlog文件(一般选择最近的pos的上一个点来进行恢复)或者查看mysql的错误日记的时间点,将mysql-binlog转化为txt,可以查看数据库的每一个操作mysqlbinlog /路径/mysql-bin.000xxx >txt1.txt使用change master to master_host="xxxx",master_user="mysync",master_password="q123456",master_log_file="mysql-bin.xxx",master_log_pos=xxx;关键在与能否找到mysql主库的没有同步的pos和pos所在的bin-log文件恢复MySQL主从数据一致性的总结 http://www.linuxidc.com/Linux/2015-12/126882.htmMySQL主从数据库配置攻略以及错误处理 http://www.linuxidc.com/Linux/2015-12/126574.htmMySQL主从延时问题小计&个人总结 http://www.linuxidc.com/Linux/2015-12/126127.htmLinux环境中MySQL主从同步--添加新的从库 http://www.linuxidc.com/Linux/2015-08/122448.htmMySQL主从失败 错误Got fatal error 1236 http://www.linuxidc.com/Linux/2012-02/54729.htmMySQL主从复制,单台服务器上实施 http://www.linuxidc.com/Linux/2013-03/81913.htm搭建MySQL代理服务器实现读写分离+主从同步 http://www.linuxidc.com/Linux/2014-05/102265.htmMySQL 5.5 主从双向同步 http://www.linuxidc.com/Linux/2012-12/75973.htmMySQL 5.5主从同步排错 http://www.linuxidc.com/Linux/2014-08/105416.htmMySQL主从复制异步半同步实例 http://www.linuxidc.com/Linux/2014-10/107608.htm本文永久更新链接地址