mamp mysql terminal import code example
Example 1: import file mysql terminal
mysql -u<username> -p<password> databaseName < /path/fileName.sql
Example 2: Export / Import Large Database from MAMP using Terminal
/applications/MAMP/library/bin/mysql -u [USERNAME] -p [DATABASE_NAME] < [PATH_TO_SQL_FILE]