Import
mysql -u username -p -h localhost DATA-BASE-NAME < data.sql
Export
mysql -u username -p -h localhost DATA-BASE-NAME > data.sql