How to Import/Export MySQL Databases with SSH

0
21

To Import without errors .

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

Code:
 mysqldump -u username -p database_name > dumpfile.sql

To import a MySQL Database, run:

Code:
 mysql -u username -p database_name < dumpfile.sql

LEAVE A REPLY

Please enter your comment!
Please enter your name here