October 15, 2013
MySQL import/export database from/to .sql
Import
mysql -u username -p -h localhost DATA-BASE-NAME < data.sql
Export
mysql -u username -p -h localhost DATA-BASE-NAME > data.sql
Following the Flow
Import
mysql -u username -p -h localhost DATA-BASE-NAME < data.sql
Export
mysql -u username -p -h localhost DATA-BASE-NAME > data.sql