MySQL import large dumps

Import

mysql -u username --password=password database_name < filename.sql

Export

mysqldump -u USER --password=PASSWORD DATABASE > filename.sql