MySQL backup using mysqldump


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

Will prompt for user password.


Copy this code and paste it in your HTML
  1. mysqldump --opt --user=USER_NAME --password DB_NAME > DB_NAME.sql
  2. mysql --user=USER_NAME --password DB_NAME < DB_NAME.sql

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.