Loading

ERROR 1694 (HY000): Cannot modify @@session.sql_log_bin inside a transaction

MySQL执行sys.diagnostics存储过程如下报错

复制代码
root@localhost [(none)]>call sys.diagnostics(null,null,'current');
+-------------------+
| summary           |
+-------------------+
| Disabled 1 thread |
+-------------------+
1 row in set (0.02 sec)

ERROR 1694 (HY000): Cannot modify @@session.sql_log_bin inside a transaction
复制代码

经分析数据库autocommit参数设置为off。重新设置成on后执行正常无报错

作者:hanglinux

出处:https://www.cnblogs.com/hanglinux/p/16833093.html

版权:本作品采用「署名-非商业性使用-相同方式共享 4.0 国际」许可协议进行许可。

posted @   李行行  阅读(387)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 全程不用写代码,我用AI程序员写了一个飞机大战
· DeepSeek 开源周回顾「GitHub 热点速览」
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 记一次.NET内存居高不下排查解决与启示
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
点击右上角即可分享
微信分享提示
more_horiz
keyboard_arrow_up dark_mode palette
选择主题