Copy MySQL database from remote server to local
Hi All,
I am trying to copy a MySQL database from a remote server to a local server. So far I find that this works in getting the database:
mysqldump -h Host -u dbUsername -pDBPassword | > /path/to/dir/testBackup.sqlIt connects to the remote host and dumps a copy of the database locally.
Is there a way to add to that line to take that dumped database and import it to the local machine? I'm trying to backup databases from our hosting partner and import them locally in case our hosting partner goes down.
TIA - Vijay