1#note by specifying -p flag without a password it'll prompt you for pass
2
3DUMP:
4mysqldump -u username -p dbname --lock-tables=false > filename.sql
5
6Import:
7mysql -u username -p dbname < filename.sql
8
9Import external:
10mysql -h host -u username -p dbname < filename.sql