AWS Aurora: The MySQL server is running with the --read-only option so it cannot execute this statement

时光毁灭记忆、已成空白 提交于 2019-12-03 09:57:15

It turned out to be a silly mistake, but posting it anyway in case anyone else has the problem:

I was accessing the replica instance by mistake - I had copied the endpoint for the replica, and it is read-only apparently. So if you have this problem, verify that you are connecting to the Primary Instance or best of all the DB Cluster endpoint.

Edit: According to @Justin's answer we definitely should use DB Cluster:

You need to connect to the cluster, rather than an instance. This is because instances seem to take a turn to be the readers and writers.

You need to connect to the cluster, rather than an instance. This is because instances seem to take a turn to be the readers and writers.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!