Forum Moderators: coopster
MY QUESTION:
Does anyone know coding to Grab all entries in a MYSQL Database table, and essentially insert them into another MYSQL (Which would be local on the computer executing the script). I also plan on actually deleting any entries that have been grabbed and put on this local database.
Summary:
Basically, I'm constantly backing up a MYSQL Database, but not exactly. I'm adding whatever new stuff comes to a complete local MYSQL Database.
Like Can I do something like this?
$link=mysql_connect ("#*$!", "xxxxxxx", "xxxxx") or die ('Could not connect to the database because: ' . mysql_error());
mysql_select_db ("dbName") or die ('Could not select database');
$result = mysql_query($sql) or die('Query failed: ' . mysql_error());
shell> mysqldump --databases db_name1 [db_name2 ...] > localdatabasePATH.sql
[onlamp.com...]