I have a localhost MySQL server (wamp), and I have an online MySQL server. The thing is that I want to backup a table from the online server to my local server (copy data between existing tables).
I've tryed to use mysqldump
, but I have no result
<?php
exec("mysqldump --host=onlinehost --user=username --password=password dbname table \
| mysql --host=localhost --user=root --password= dblocalname");
?>