Cancel MySQL salve settings

Source: Internet
Author: User

192.168.0.11 Master

     192.168.0.12Slave

The master server has a problem, so the master server is upgraded from the master server to the master server. in CNF, the master-host option of 192.168.0.12 is disabled. After restart, it is found that the slave status is always set, instead of the empty set

You cannot use reset slave.

 

You can use change master to master_host = ''to cancel the settings of the original slave. After the execution, the slave status can be changed to null.

Mysql> show slave status \ G
Empty set (0.00 Sec)

 

In mysql5.5, execute change master to master_host = '';

Error 1210 (hy000): Incorrect arguments to master_host

Stop slave

Slave stop;

Change master to master_host = '';

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.