"aws aurora: the mysql server is running with the --read-only option so it cannot execute this statement" Code Answer

2

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.

By findcaiyzh on February 2 2022

Answers related to “aws aurora: the mysql server is running with the --read-only option so it cannot execute this statement”

Only authorized users can answer the Search term. Please sign in first, or register a free account.