First, figure out where MAMP stores your databases. if you are on MAMP Pro, they are located at
/Library/Application Support/appsolute/MAMP PRO/db/mysql/