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.
[code language=”php”]/applications/MAMP/library/bin/mysql -u root -p database_name < /import_file_path.sql[/code]
if you set password for user, it will ask to you.
[code language=”php”]/applications/MAMP/library/bin/mysqldump -u root -p database_name > /export_location.sql[/code]