Import or restore a database backup

Posted 2 years ago

Make sure you have a created a blank database and you have details to hand.

mysql -u database_user -p database_name < backup_name.sql

NOTE: the only difference between this and the backup command is “mysql” as opposed to “mysqldump” and the angled bracket “<"