Mysql clears the relay-log File

Source: Internet
Author: User
Today, many files similar to hostname-relay-bin.0000 * are found in the mysql data directory of the local machine, which usually exists on the mysqlslave instance. The main purpose is to record the master-slave synchronization information, which will be automatically deleted under normal circumstances. The local machine has not been configured with master or slave, and its source is really unclear. Since it is used on slave

Today, many files similar to hostname-relay-bin.0000 * are found in the mysql data directory of the local machine, which usually exists on the mysql slave instance. The main purpose is to record the master-slave synchronization information, which will be automatically deleted under normal circumstances. The local machine has not been configured with master or slave, and its source is really unclear. Since it is used on slave

Today, many files similar to hostname-relay-bin.0000 * are found in the mysql data directory of the local machine, which usually exists on the mysql slave instance. The main purpose is to record the master-slave synchronization information, which will be automatically deleted under normal circumstances.

The local machine has not been configured with master or slave, and its source is really unclear. Since it is used on slave, you can safely delete it. Use the reset master command to delete the log files on the master instance and run the following command for the slave instance:

Reset slave

Original article address: mysql clears the relay-log file and thanks to the original author for sharing it.

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.