Posted By

kestoske on 05/07/11


Tagged


Versions (?)

Restoring from a Database Backup


 / Published in: Bash
 

  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  

You need to login to post a comment.