Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create mirror of mysql database for switching purpose in case of emergency?

Tags:

I have around 400 GB Live mysql Databases on one server and I like to create a mirror for this database. In the server I have database ranging from 1 GB to 100 GB. What are the best practices available that I can use? My purpose is that I should be able to switch in case of emergency. It should have all live data.

Thanks.

like image 323
aartist Avatar asked May 08 '09 19:05

aartist


People also ask

Does MySQL support replication?

Replication in MySQL supports different types of synchronization. The original type of synchronization is one-way, asynchronous replication, in which one server acts as the source, while one or more other servers act as replicas.


1 Answers

It depends on the emergency...

For live data, replication is the way to go, but an accidental DROP will be replicated straight across...

Also, are you looking to survive a building disaster, or just a server/drive/hardware crash?

like image 53
Greg Avatar answered Oct 11 '22 18:10

Greg