Replicate specific database

When you want to replicate a specific database instead of all databases (default setting) enter the following in the my.cnf

On the master server:

binlog_do_db = <db name you want to replicate>

Restart MySQL/MariaDB

On the slave server:

replicate_do_db = <same db name as above>

Restart MySQL/MariaDB