Quantcast
Channel: Prevent non-replication writes to MySQL slave? - Server Fault
Browsing all 6 articles
Browse latest View live

Answer by billyw for Prevent non-replication writes to MySQL slave?

As of MySQL 5.7.8, there is now a super_read_only option, which prevents even SUPER users from performing client updates. It does not disrupt the replication process. As with other settings, it can be...

View Article



Answer by Jeff for Prevent non-replication writes to MySQL slave?

As the first post somewhat suggests, you do it with permissions. Read-only option does not work for super users as an FYI and its also not really a workable solution for a slave where you want to...

View Article

Answer by Riedsio for Prevent non-replication writes to MySQL slave?

As an alternative to setting read_only=1 (e.g. when there are other scratchpad/reporting/development databases on the slave instance), I sometimes strip all privileges other than SELECT from all users...

View Article

Answer by Craig for Prevent non-replication writes to MySQL slave?

Only give replication related rights to the users on the slave. You still have the issue of root user rights, but you can remove remote root access to the DB server.

View Article

Answer by Warner for Prevent non-replication writes to MySQL slave?

Enable the read-only option in my.cnf. It can also be specified as a flag on the command line using --read-only with mysqld.

View Article


Prevent non-replication writes to MySQL slave?

We have some MySQL database servers set up with row-based replication, for performance. The software writes to the master, and reads from either the master or the slave. Everything's working great, for...

View Article
Browsing all 6 articles
Browse latest View live


Latest Images