MAMP is great tool for fast development. Sometimes we need to download huge websites that has large database for working locally.
So need to import/export easily without phpmyadmin.
/applications/MAMP/library/bin/mysql -u root -p database_name < /import_file_path.sql
if you set password for user, it will ask to you.
/applications/MAMP/library/bin/mysqldump -u root -p database_name > /export_location.sql