当前位置:网站首页>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;
边栏推荐
- Unit test ci/cd
- My hematemesis collection integrates script teaching from various classic shell books. As Xiaobai, come quickly
- (original) [Maui] realize "floating action button" step by step
- MySQL从库Error:“You cannot ‘Alter‘ a log table...“
- How about stock online account opening and account opening process? Is it safe to open a mobile account?
- Matlab plotyy coordinate axis setting, [reprint] example of MATLAB plotyy drawing double ordinate graph [easy to understand]
- G1垃圾收集器中重要的配置参数及其默认值
- PCB understand Wang, are you? I am not
- Jupyter notebook中添加虚拟环境
- GPS数据格式的分析与处理[通俗易懂]
猜你喜欢

Jupyter notebook中添加虚拟环境

How to set auto format after saving code in vscade

其他国产手机未能填补华为的空缺,苹果在高端手机市场已无对手

First knowledge of exception

药物发现新方法,阿斯利康团队通过课程学习改进从头分子设计

《蛤蟆先生去看心里医生》阅读笔记

Fs7022 scheme series fs4059a dual two lithium battery series charging IC and protection IC

MySQL multi table joint query

Pytorch model

Design artificial intelligence products: technical possibility, user acceptability and commercial feasibility
随机推荐
Class structure in C language - dot
坐拥755万开发者的中国开源,进度几何?
From PDB source code to frame frame object
Build a learning environment
G : 最大流问题
我呕血收集融合了来自各路经典shell书籍的脚本教学,作为小白的你快点来吧
[codec] write H264 decoder (1) from scratch
What is generics and how to use generics analysis
MySQL从库Error:“You cannot ‘Alter‘ a log table...“
yii2编写swoole的websocket服务
RK3399平台开发系列讲解(使用篇)Pinctrl子系统的介绍 - 视频介绍
Mature case and source code of hash quiz game system development technology
Oceanwide micro fh511 single chip microcomputer IC scheme small household appliances LED lighting MCU screen printing fh511
The difference between align items and align content
欧拉恒等式:数学史上的真正完美公式!
Websocket automatically disconnects in 1 minute
Special test for cold and hot start of app
1015. picking flowers
Pytorch main modules
Arcgis 矢量中心点生成矩形并裁剪tif图像进行深度学习样本训练