MySQL – import / export database from / into file
Posted on: October 23, 2010 /
Categories: MySQL
Export database into a file with shell command:
mysqldump -u USERNAME -p PASSWORD database > filename.ext;
Import database from a file with shell command:
mysql -u USERNAME -p PASSWORD database < filename.ext;