当前位置:网站首页>MySQL从库Error:“You cannot ‘Alter‘ a log table...“
MySQL从库Error:“You cannot ‘Alter‘ a log table...“
2022-06-28 13:37:00 【DATA数据猿】
MySQL从库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
导致报错的原因
mysql_upgrade执行的所有语句都被记二进制记录,然后复制到slave,导致报错
解决方式一:
停止复制线程,关闭慢查询日志,当前错误可恢复
stop slave;
set global slow_query_log="OFF";
start slave;
set global slow_query_log="ON";
解决方式二:
跳过该错误步骤
stop slave;
# 使用命令跳过当前错误语句,sql_slave_skip_counter可以指定跳过多少步
set global sql_slave_skip_counter=1;
start slave;
边栏推荐
- Electronic components distribution 1billion Club [easy to understand]
- 栅格矢量数据的裁剪
- What is generics and how to use generics analysis
- How fragrant! The most complete list of common shortcut keys for pychar!
- Make an ink screen electronic clock, cool!
- Forecast and Analysis on market scale and development trend of China's operation and maintenance security products in 2022
- yii2连接websocket服务实现服务端主动推送消息给客户端
- My hematemesis collection integrates script teaching from various classic shell books. As Xiaobai, come quickly
- 程序员坐牢了,会被安排去写代码吗?
- Unit test ci/cd
猜你喜欢
Hematemesis recommends 17 "wheels" to improve development efficiency
CVPR再起争议:IBM中稿论文被指照搬自己承办竞赛第二名的idea
The company leader said that if the personal code exceeds 10 bugs, he will be dismissed. What is the experience?
公司领导说,个人代码超10个Bug就开除,是什么体验?
From PDB source code to frame frame object
《蛤蟆先生去看心里医生》阅读笔记
How fragrant! The most complete list of common shortcut keys for pychar!
3、项目的整体UI架构
Commonly used "redmine" for # test bug
Oceanwide micro fh511 single chip microcomputer IC scheme small household appliances LED lighting MCU screen printing fh511
随机推荐
List set to array
(原创)【MAUI】一步一步实现“悬浮操作按钮”(FAB,Floating Action Button)
为什么新的5G标准将为技术栈带来更低的 TCO
N皇后问题
中国广电5G套餐来了,比三大运营商低,却没预期那么低
RK3399平台开发系列讲解(使用篇)Pinctrl子系统的介绍 - 视频介绍
G1垃圾收集器中重要的配置参数及其默认值
Yii2 connects to websocket service to realize that the server actively pushes messages to the client
Explanation of sprintf function in C language
为什么越来越多的用户放弃 Swagger,选择Apifox
Centos7 - installing mysql5.7
Special test for cold and hot start of app
Hundreds of lines of code to implement a JSON parser
redis和mysql数据不一致问题如何解决?
(original) [Maui] realize "floating action button" step by step
yii2连接websocket服务实现服务端主动推送消息给客户端
Inftnews | technology giants accelerate their march into Web3 and metauniverse
Build a learning environment
Mobile web training day-1
单元测试 CI/CD