Export MySQL Dump
by Kyle on
mysqldump -h DBHOST -u DBUSER -pDBPASS DBNAME > dump.sql
Replace text in uppercase with the appropriate information:
DBHOST- Database hostname, usuallylocalhostDBUSER- User with privileges to the databaseDBPASS- Password for the userDBNAME- Database name
Import MySQL Dump
by Kyle on
mysql -h DBHOST -u DBUSER -pDBPASS DBNAME < dump.sql
Replace text in uppercase with the appropriate information:
DBHOST- Database hostname, usuallylocalhostDBUSER- User with privileges to the databaseDBPASS- Password for the userDBNAME- Database name