I have two RDS mysql servers running, one is the main (master) rds server and the other is the read-only slave, which was created through the RDS console.
How would I create a new user account for the read-only machine, that would not have access to the main master machine? For example, when I run the following command:
CREATE USER 'foo'@'localhost' IDENTIFIED BY 'password';
I get:
The MySQL server is running with the --read-only option so it cannot execute this statement
I would like the user to have access to the following:
- YES (read-only): site-read.cyrnzp...
- NO (master): site-provisioned.cyrnzp...
How would this be done then?