From the master reset mysql

The following error occurs after stat slave; No, then stop slave::; doing mysql main, carried out show slave status \ G from when copied from the server to view Slave_IO_Running: No and Slave_SQL_Running

mysql> start slave;
ERROR 1201 (HY000): Could not initialize master info structure; more error messages can be found in the MySQL error log

solution:

mysql> stop slave;
Query OK, 0 rows affected (0.00 sec)


mysql> reset slave;(reset重置)
Query OK, 0 rows affected (0.01 sec)


mysql> change master to master_host='192.168.10.155',master_user='slave1',master_password='123456',master_log_file='mysql-bin.000023',master_log_pos=107;
Query OK, 0 rows affected (0.01 sec)


mysql> start slave;
Query OK, 0 rows affected (0.00 sec)

 

And then execute show slave status \ G; View:

Slave_IO_Running: Yes
Slave_SQL_Running: Yes

So ok, view such original appeared on the Internet may be done before mysql master-slave!
---------------------
Disclaimer: This article is CSDN blogger "Linux_newbie_rookie 'original article, follow the CC 4.0 by-sa copyright agreement, reproduced, please attach the original source link and this statement.
Original link: https: //blog.csdn.net/Linux_newbie_rookie/article/details/77568552

Guess you like

Origin www.cnblogs.com/heracles-Mercury/p/11325185.html