MySQL: how to replicate users in master-master configuration I'm new to MySQL and have set up MySQL master-master replication according this tutorial:
https://support.rackspace.com/how-to/mysql-master-master-replication/

I have created some test users on the first DB and would like to know how can I replicated those users to the second master DB.

As far as I understood the administrative database, which is called 'mysql' must be replicated, so the users will be replicated.

Is it enough if I add the line below into my.cnf?

replicate-do-db mysql


Are there any other possibilities to replicated users?

The closest answer I found was mysql-db-in-replication-but-users-created-on-master-are-not-replicating-on-slave 

Any help would be appreciated.
replicate-do-db=mysql will definitely work. I tried it on test servers.