当前位置:网站首页>MySQL slave error: "you cannot 'alter' a log table“
MySQL slave error: "you cannot 'alter' a log table“
2022-06-28 13:45:00 【Data ape】
MySQL Slave Library Error:“You cannot ‘Alter’ a log table…”
Error 'You cannot 'ALTER' a log table if logging is enabled' on query. Default database: 'mysql'. Query: 'ALTER TABLE slow_log
The cause of the error is
mysql_upgrade All statements executed are recorded as binary records , Then copy it to slave, Result in an error
Solution one :
Stop the copy thread , Turn off slow query log , The current error is recoverable
stop slave;
set global slow_query_log="OFF";
start slave;
set global slow_query_log="ON";
Solution two :
Skip this error step
stop slave;
# Use the command to skip the current error statement ,sql_slave_skip_counter You can specify how many steps to skip
set global sql_slave_skip_counter=1;
start slave;
边栏推荐
- How to set auto format after saving code in vscade
- 其他国产手机未能填补华为的空缺,苹果在高端手机市场已无对手
- 2.01 backpack problem
- Idea global search shortcut settings
- Explanation of sprintf function in C language
- 众昂矿业着眼氟化工产业,布局新能源产业链
- 几百行代码实现一个 JSON 解析器
- yii2连接websocket服务实现服务端主动推送消息给客户端
- 初识exception
- Electronic components distribution 1billion Club [easy to understand]
猜你喜欢

Other domestic mobile phones failed to fill the vacancy of Huawei, and apple has no rival in the high-end mobile phone market

MySQL multi table joint query

Hubble数据库x某股份制商业银行:冠字号码管理系统升级,让每一张人民币都有 “身份证”

Special test for cold and hot start of app

接雨水系列问题

Elastic box auto wrap demo

坐拥755万开发者的中国开源,进度几何?

初识exception

To be the Italian Islander? Liuqiangdong cashed out 6.6 billion yuan in two months and made a one-time 560million "emergency transfer" to buy the European maritime Palace

Recognize the startup function and find the user entry
随机推荐
Simple understanding of ThreadLocal
If a programmer goes to prison, will he be assigned to write code?
Idea global search shortcut settings
Class structure in C language - dot
木兰开放作品许可证1.0面向社会公开征求意见
Fh511+tp4333 form an outdoor mobile power lighting camping lamp scheme.
如何备份mysql_史上最全的MYSQL备份方法
Solution to directory access of thinkphp6 multi-level controller
腾讯云国际云服务器登录之后没有网络,如何排查?
DevEco Studio 3.0编辑器配置技巧篇
决策树预测红酒品质
G : 最大流问题
如何设计数据可视化平台
为什么越来越多的用户放弃 Swagger,选择Apifox
[机缘参悟-32]:鬼谷子-抵巇[xī]篇-面对危险与问题的五种态度
初识exception
Luogu_ P1303 A*B Problem_ High precision calculation
N皇后问题
嵌入式设计与开发项目-液位检测告警系统
PHP gets the number of digits and replaces it with the specified mantissa