I'm trying to set up a PHP script to read a handful of MySQL tables from database A and then insert them into databases B and C. It's a really simple scenario - the tables being copied over can even be emptied or dropped before they have values inserted into them. All the databases are on the same server, and I don't need to preserve the old data, just overwrite it.
The only thing I can't do is table replication; my hosting setup doesn't permit it.
I tried a few methods I came up with and read several questions and answers here on SO and elsewhere, but I'm not finding the answer - my question is probably too simple! This is something that I would want to call from a cron job or manually, maybe once a day maximum. It doesn't even have to be very efficient.
Thanks, I appreciate any help you may have to offer - even links to previous questions with the answer would be great if my search mojo was weak.
Frank