Portal Home > Knowledgebase > Tutorials/How Tos > How to Import/Export MySQL Databases with SSH


How to Import/Export MySQL Databases with SSH




To export a MySQL database, access your VPS via SSH and run:

# mysqldump -u username -p database_name > dumpfile.sql

To import a MySQL Database, run:

# mysql -u username -p database_name < dumpfile.sql



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read