Last_SQL_Errno: 1050

主库上create table,从库上存在。
报错信息如下所示:
               Last_SQL_Errno: 1050
               Last_SQL_Error: Error 'Table 'tb02' already exists' on query. Default database: 'lgj3306'. Query: 'create table tb02(id int,name varchar(20))'
 
处理的原则:以主库的为准。
处理方法:在从库上drop这张表。
具体操作:在salve上 
set sql_log_bin=0;
drop table xxx;
set sql_log_bin=1;
stop slave sql_thread;
start slave sql_thread;
原文地址:https://www.cnblogs.com/liang545621/p/7518400.html