I was wondering if anybody had any insight on the best way of doing this. I'm looking for an automated process I can CRON: I have two separate servers (both running LAMP). One is a live server, the other is the test server. I would like to copy data from live mysql db to test mysql db once a week so that test contains a "mirror" of live. I know I can just do an export from one to the other, but is there a way to do this automatically? Taking into consideration that each DB are not on the same machine?
well, instead of doing it in php write a shell script (or get it done) which dumps data from production server and imports it into test server, which will be fast and accurate.
Wish you best of luck dear. You are always welcome to ask questions about MySQL replication. I have some experience with it.