mysql master-slave replication error solutions

mysql master-slave replication error solutions

I first create a mistake to delete a info3 field in the slave then inserted in info3 in master data given as follows
<pre>
Last_SQL_Errno: 1054
Last_SQL_Error: Error 'Unknown column' info3 'in' Field, List ''. ON Query the Default Database: 'test1' . Query: ' `test1`.`wef` the INSERT the INTO (id``, `info1`, info2``, `info3`) the VALUES (NULL,' 12 is ','. 1 ','. 1 ')'
</ pre >
this solution is relatively simple error directly to the table master slave then emptied out guide table can be a re-introduced
and
<pre>
STOP slave;
</ pre>

<pre>
Change Master to MASTER_HOST = '121.41.35.30', MASTER_PORT = 3306, MASTER_USER = 'Dog', master_password = '123456', MASTER_LOG_FILE = 'Master-bin.000002', MASTER_LOG_POS = 787 554;
</ pre>
// master reset the correct reading binary file location
<pre>
Start Slave
</ pre>

On it

 

 

 

Guess you like

Origin www.cnblogs.com/newmiracle/p/11872659.html