mysqldump -u user -p databasename > dump.sql
Then using SCP transfer the file to the remote server:
scp dump.sql user@remotehost.ip:
Then use the mysql client there to import the dump.sql with:
mysql -u user_name -p databasename < dump.sql
Wed, 09/16/2015
mysqldump -u user -p databasename > dump.sql
Then using SCP transfer the file to the remote server:
scp dump.sql user@remotehost.ip:
Then use the mysql client there to import the dump.sql with:
mysql -u user_name -p databasename < dump.sql