All About Ubuntu, Magento, Linux thingy... and more!
You can leave comments if you want. Just don't rant else I'll delete it! If any of my posts helped you, kindly return the favor. Just click any of the ads on this page. Cheers!
Friday, 28 September 2012
Ubuntu: MySQL import/export with gunzip
To export your mysql database simply do the following :
mysqldump -u user -p database | gzip > database.sql.gz
And to import it :
gunzip < database.sql.gz | mysql -u user -p database