当前位置:网站首页>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;
边栏推荐
- Why do more and more users give up swagger and choose apifox
- DevEco Studio 3.0编辑器配置技巧篇
- 1015. picking flowers
- 如何设计数据可视化平台
- 真香啊!最全的 Pycharm 常用快捷键大全!
- PCB understand Wang, are you? I am not
- Class structure in C language - dot
- From PDB source code to frame frame object
- 做一个墨水屏电子钟,炫酷!
- Oceanwide micro fh511 single chip microcomputer IC scheme small household appliances LED lighting MCU screen printing fh511
猜你喜欢

Mobile web training day-1

yii2编写swoole的websocket服务

APP冷热启动专项测试

2.01 backpack problem

RSLO:自监督激光雷达里程计(实时+高精度,ICRA2022)

Oracle cloud infrastructure extends distributed cloud services to provide organizations with greater flexibility and controllability

Align content attribute in flex layout

Nature子刊 | 绘制植物叶际菌群互作图谱以建立基因型表型关系

Recognize the startup function and find the user entry

Websocket automatically disconnects in 1 minute
随机推荐
Yii2 connects to websocket service to realize that the server actively pushes messages to the client
Matlab plotyy coordinate axis setting, [reprint] example of MATLAB plotyy drawing double ordinate graph [easy to understand]
抢做意大利岛主?刘强东两月套现66亿 疑一次性5.6亿“紧急转账”急购欧洲海上皇宫
DevEco Studio 3.0编辑器配置技巧篇
Oracle 云基础设施扩展分布式云服务,为组织提供更高的灵活性和可控性
Oceanwide micro fh511 single chip microcomputer IC scheme small household appliances LED lighting MCU screen printing fh511
如何备份mysql_史上最全的MYSQL备份方法
再谈exception——异常抛出时会发生什么?
RSLO:自监督激光雷达里程计(实时+高精度,ICRA2022)
MySQL multi table joint query
Align content attribute in flex layout
RK3399平台开发系列讲解(使用篇)Pinctrl子系统的介绍 - 视频介绍
Vscode shortcut key
First knowledge of exception
MySQL从库Error:“You cannot ‘Alter‘ a log table...“
How to display the server list of the electric donkey, and how to update the eMule server list
(原创)【MAUI】一步一步实现“悬浮操作按钮”(FAB,Floating Action Button)
Other domestic mobile phones failed to fill the vacancy of Huawei, and apple has no rival in the high-end mobile phone market
China Radio and television 5g package is coming, lower than the three major operators, but not as low as expected
Mobile web training day-1