Use Remote MySQL but keep a slave copy on main cpanel web server.

NevGibson

Registered
Dec 28, 2012
2
0
1
cPanel Access Level
Root Administrator
I currently have 2 cpanel servers: Webster (web), and Databud (mysql), with a fast local connection, so I've used the Remote MySQL feature on Webster, to offload all the database work onto Databud. That is working well.

What I was hoping to do is also have Webster be a mysql slave for Databud so that in the event that something went wrong on databud I could just switch back to using local mysql on webster. I already have webster's files backed up on databud so the reverse could work to if webster failed. Both servers are powerful enough to handle everything on their own if needed, at least temporarily.

Has anyone tried this sort of a setup? Is it possible without a ton of work?

I searched for quite a while and couldn't find anything about it. I tried setting it up myself, but I couldn't do it. I don't know enough about how using Remote MySQL changes things to know if I was going to break stuff. It seemed like I couldn't even access Webster's mysql server, as I was getting auto-forwarded to the one on Databud.

It seems like this is might be a solution that could be useful for other people, to allow redundancy but still harness the full power of both servers.

Any thoughts or advice would be appreciated. Thanks!