How to import/export MySQL database using SSH?

Please use the below commands for import/export the MySQL How to import/export MySQL database using SSH?database

How to import/export MySQL database using SSH?expoundsofttechsolution How to import/export MySQL database using SSH?

For importing the database:
mysql -u USERNAME -p DATABASE < backup.sql


Username: Username of your database
Database: Your database name
For exporting the database:
mysqldump -u USERNAME -p DATABASE > backup.sql

Username: Username of your database
Database: Your database name

Please leave your comment for asking any question or suggestion.

Need Help? how-to-import-export-database-using-sshexpoundsofttechsolution how-to-import-export-database-using-ssh