码迷,mamicode.com
首页 > 数据库 > 详细

Last_SQL_Errno: 1050

时间:2017-09-14 00:41:44      阅读:293      评论:0      收藏:0      [点我收藏+]

标签:t_sql   存在   exist   creat   div   query   def   drop   star   

主库上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;

 

Last_SQL_Errno: 1050

标签:t_sql   存在   exist   creat   div   query   def   drop   star   

原文地址:http://www.cnblogs.com/liang545621/p/7518400.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!