MySQL Dump and Import from the command line


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



Copy this code and paste it in your HTML
  1. #MySQL Dump
  2. mysqldump -uUsername -pPassword DatabaseName > filename.sql
  3.  
  4. #MySQL Import
  5. mysql -uUsername -pPassword DatabaseName < filename.sql

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.