小编awd*_*xer的帖子

忽略要复制的表时如何抑制 mysql 错误日志中的特定警告

有没有办法让 mysql 错误日志少一些警告?我只是在 my.cnf 中添加了replicate-ignore-table选项,这样我们的健康检查表就不会被复制。然而现在我每分钟都会收到几个警告,告诉我一些我特别想要发生的事情......这很烦人,更不用说日志现在将以更快的速度增长。

我认为添加Slave-skip-errors=1237可以修复它,但这并不是停止复制的实际错误。

有任何想法吗?

2015-07-16 21:51:02 31210 [Warning] Error log throttle: 4 time(s) Error_code: 1237 "Slave SQL thread ignored the query because of replicate-*-table rules" got suppressed.
2015-07-16 21:51:02 31210 [Warning] Slave SQL: Could not execute Query event. Detailed error: Slave SQL thread ignored the query because of replicate-*-table rules; Error log throttle is enabled. This error will not be displayed for next 60 secs. It will be suppressed, Error_code: 1237
2015-07-16 21:53:01 …
Run Code Online (Sandbox Code Playgroud)

mysql error-log mysql-5.6

5
推荐指数
1
解决办法
4045
查看次数

标签 统计

error-log ×1

mysql ×1

mysql-5.6 ×1