mysql reset master_主库reset master清理binlog日志到主从复制错误

今天看见主库binlog日志非常大,于是使用reset master命令清空日志

mysql> reset master;

Query OK, 0 rows affected (1 min 59.87 sec)

结果从库就报错了

mysql> show slave status\G;

*************************** 1. row ***************************

Slave_IO_State:

Master_Host: 192.168.129.150

Master_User: replicat

Master_Port: 3306

Connect_Retry: 60

Master_Log_File: mysql-bin.000312

Read_Master_Log_Pos: 2029035

Relay_Log_File: mysql-relay-bin.000945

Relay_Log_Pos: 2020198

Relay_Master_Log_File: mysql-bin.000312

Slave_IO_Running: No

Slave_SQL_Running: Yes

Replicate_Do_DB:

Replicate_Ignore_DB:

Replicate_Do_Table:

Replicate_Ignore_Table:

Replicate_Wild_Do_Table:

Replicate_Wild_Ignore_Table:

Last_Errno: 0

Last_Error:

Skip_Counter: 1

Exec_Master_L

你可能感兴趣的:(mysql,reset,master)