Posted By

mikael12 on 10/02/10


Tagged

dump


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

hugeidea
titosemi
dmistriotis


MySQL export and import from host


 / Published in: Bash
 

  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  

You need to login to post a comment.