免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 5872 | 回复: 2
打印 上一主题 下一主题

mysql主备 Last_Errno: 1146错误 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-08-22 16:43 |只看该作者 |倒序浏览
5可用积分
mysql> show slave status\G;
*************************** 1. row ***************************
             Slave_IO_State: Waiting for master to send event
                Master_Host: 172.28.3.40
                Master_User: repl
                Master_Port: 3306
              Connect_Retry: 60
            Master_Log_File: mysql-bin.000005
        Read_Master_Log_Pos: 98
             Relay_Log_File: Cer2DB04-relay-bin.000004
              Relay_Log_Pos: 235
      Relay_Master_Log_File: mysql-bin.000003
           Slave_IO_Running: Yes
          Slave_SQL_Running: No
            Replicate_Do_DB: authtest,auth
        Replicate_Ignore_DB:
         Replicate_Do_Table:
     Replicate_Ignore_Table:
    Replicate_Wild_Do_Table:
Replicate_Wild_Ignore_Table:
                 Last_Errno: 1146
                 Last_Error: Error 'Table 'authtest.users' doesn't exist' on que                                             ert into users (email, magrate, password, shutter) values ('ttt4@163.com', 0, '1
               Skip_Counter: 0
        Exec_Master_Log_Pos: 98
            Relay_Log_Space: 3896
            Until_Condition: None
             Until_Log_File:
              Until_Log_Pos: 0
         Master_SSL_Allowed: No
         Master_SSL_CA_File:
         Master_SSL_CA_Path:
            Master_SSL_Cert:
          Master_SSL_Cipher:
             Master_SSL_Key:
      Seconds_Behind_Master: NULL
我用STOP SLAVE;
     SET GLOBAL SQL_SLAVE_SKIP_COUNTER = 1;
    START SLAVE;还是同样的错误,请高手指点!!!

最佳答案

查看完整内容

SET GLOBAL SQL_SLAVE_SKIP_COUNTER = 1;stop slave;start slave;

论坛徽章:
0
2 [报告]
发表于 2008-08-22 16:43 |只看该作者
SET GLOBAL SQL_SLAVE_SKIP_COUNTER = 1;stop slave;start slave;

论坛徽章:
0
3 [报告]
发表于 2008-08-22 22:53 |只看该作者
mysql-bin.000003 里面的98中的sql,用mysqlbinlog 看下有多少Error_code: 1046的
顺便问下
你slave中是不是少了authtest.users这张表啊:)
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP