macOS is a proprietary graphical operating system developed and marketed by Apple Inc. since 2001. It is the primary operating system for Apple's Mac computers

By toswebdev, 19 September, 2021

Here command changes your database according to your project and imports a large database very smoothly using the below command.

/applications/MAMP/library/bin/mysql -u root -p example_db < /Applications/MAMP/htdocs/example_db.mysql

After Run above command, you have to just add the PHPMyAdmin password if you set otherwise press enter. wait for a while for the import process.