how to import a new database into phpmyadmin on mamp with the comman line code example
Example: Export / Import Large Database from MAMP using Terminal
/applications/MAMP/library/bin/mysql -u [USERNAME] -p [DATABASE_NAME] < [PATH_TO_SQL_FILE]
/applications/MAMP/library/bin/mysql -u [USERNAME] -p [DATABASE_NAME] < [PATH_TO_SQL_FILE]