Last Updated: 1/24/2015
This article applies to the following services:
- VPS (Linux only)
- Dedicated servers (Linux only)
mysqldump -p -u USERNAME DATABASE_NAME > DBNAME.sql
You'll be prompted to enter the password.
To import the database back into MySQL, use the following:
mysql -p u USERNAME DATABASE_NAME < DBNAME.sql
You'll be promted to enter the password.