MySQL export and import from host


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



Copy this code and paste it in your HTML
  1. #Export a MySQL database
  2.  
  3. mysqldump -u username -ppassword -h localhost database_name > file.sql
  4.  
  5.  
  6.  
  7.  
  8. #Import a MySQL database
  9.  
  10. mysql -u username -ppassword -h localhost database_name < file.sql

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.