Steven Vona
asked on
Replicate MySQL database once per day
I have a MySQL database that we use for IDS systems. We would like to create a second database in a remote location and replicate DB1 with DB2. I found plenty of information about setting up database replication with MySQL, but it seems they are do replication in near real time.
Is there a way I can set up replication to only take place at night? This would help reduce stress to our WAN link.
Thanks
Both databases would be running on RHEL6.
Is there a way I can set up replication to only take place at night? This would help reduce stress to our WAN link.
Thanks
Both databases would be running on RHEL6.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
multimac's solution will also work, but it involves multiple steps including transferring of binary logs. I see it has one advantage though - once you run the binary logs you know you're done - unlike the master-slave replication where you need to check the status.
ASKER
@joahnntagle,
So I would put those script on the slave server correct?
So I would put those script on the slave server correct?
Yes that's correct.
http://dev.mysql.com/doc/refman/5.0/en/point-in-time-recovery.html