开发者社区 问答 正文

RDS报错The MySQL server is running with the --rea...

已解决

RDS报错The MySQL server is running with the --read-only option so it cannot execute this statement

展开
收起
提个问题 2024-06-07 16:14:45 253 分享 版权
1 条回答
写回答
取消 提交回答
  • 开发者社区问答官方账号
    官方回答
    采纳回答
    RDS实例迁移、升级版本、HA切换都会发生连接闪断及30秒以内的只读状态,处于只读状态时程序侧就会存在The MySQL server is running with the --read-only option的报错。
    实例是否发生HA切换,可以在RDS控制台>事件中心>历史事件中查看。
    2024-06-07 16:14:46
    赞同 展开评论