export database mysql ssh code example
Example: how to export/import a mysql database via ssh
[server]$ mysql -h mysql.example.com -u username -p dbname < databasefile.sql
[server]$ mysql -h mysql.example.com -u username -p dbname < databasefile.sql