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

 

相关文章:

  • 2022-12-23
  • 2022-02-05
  • 2022-01-01
  • 2022-01-26
  • 2022-02-21
  • 2021-06-25
  • 2021-12-19
猜你喜欢
  • 2021-05-21
  • 2022-12-23
  • 2021-10-29
  • 2021-08-12
  • 2021-07-29
  • 2021-05-22
  • 2022-12-23
相关资源
相似解决方案