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.