2021-08-05
mycat+mysql for update报错
mysql集群架构是主从,从库设置了read_only
mysql上边架设了一套中间件,mycat,通过mycat访问mysql。执行语句:
select user_no from test1 where user_no=‘F86010008’ for update;
会报错:
The MySQL server is running with the --read-only option so it cannot execute this statement
就是mycat不能将for update操作指向主库。
mycat已经设置参数:strictTxIsolation为true,也不好用。
mysql库不能设置autocommit=0.
麻烦问下,有什么办法吗?
我来答
添加附件
收藏
分享
问题补充
1条回答
默认
最新
回答交流
提交
问题信息
请登录之后查看
邀请回答
暂无人订阅该标签,敬请期待~~
墨值悬赏

评论
