How to import and export a database via 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