Activating MAMP's General Query Log Posted on May 22nd, 2016
To activate the query log for MAMP open up terminal
/Applications/MAMP/bin/startMysql.sh. On the end of the second line, add the following code:
--general_log=1 --general-log-file=/Applications/MAMP/logs/mysql_general_log. The first part turns on the general log the second part sets the path to where the queries will be written. You can view the queries as they run with the following command:
tail - f /Applications/MAMP/logs/mysql_general_log.