Restoring from a Database Backup


/ Published in: Bash
Save to your folder(s)



Copy this code and paste it in your HTML
  1. cat db_backup.sql | mysql -u mysqluser -p mysqldatabase
  2.  
  3. or
  4.  
  5. gunzip < db_backup.sql.gz | mysql -u mysqluser -p mysqldatabase

Report this snippet


Comments


You need to login to view comments.