MYSQL Master Slave Replication over SSH tunnel
The purpose of running having a master / slave relationship between your databases is that the slave database will be an exact replica of the specified master database. The purpose of running the connection through a SSH tunnel is to ensure:
- Connection is encrypted
- MYSQL server will only connect to the localhost
- Minimal ports need to be opened at the firewall.
If you are unfamiliar with the SSH protocol or how to forward local ports, now is a great time to learn about it or to brush up on it from the Offical Website.
On Both Servers
On both the master …
more ...