NixUser

NixUser.com | Unix User | Linux User | NixUser

How to Import & Export MySQL Databases with SSH

To export a MySQL database, access your server via ssh and run the following commands:
# mysqldump -u username -p database_name > database.sql
To import a MySQL Database, run the command:
# mysql -u username -p database_name < database.sql
That’s it 🙂