MySQL master-slave failure using bin-log recovery

Source: Internet
Author: User

Master and slave failed to first view from the database show slave status\g

Remember Bin-log Pos and Binlog files (typically select the last point of the nearest POS to recover) or view MySQL's error diary at a point in time,

Convert Mysql-binlog to TXT to see every operation of the database

Mysqlbinlog/Path/mysql-bin.000xxx >txt1.txt

UseChange master to master_host= ' xxxx ', master_user= 'Mysync' , master_password= ' q123456 ',
master_log_file= ' mysql-bin.xxx ', master_log_pos=xxx;

The key is with the Bin-log file where you can find the sync-free POS and POS for the MySQL Master library


This article from "East God to a dozen five" blog, declined reprint!

MySQL master-slave failure using bin-log recovery

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.