读写分离后链式查询设置lock后报错

浏览:477 发布日期:2015/10/27
3.2.3 - 普通 - 已关闭
链式查询在只读里是没问题的,但是加了锁之后 lock(true),会报错:General error: 1290 The MySQL server is running with the --read-only option so it cannot execute this statement;看样子这种的查询只能在主写里去执行,但是却跑到了主读里去
评论(
后面还有条评论,点击查看>>