FAQ - MySQL
Where is my my.cnf file located?
“/Applications/MAMP/tmp/mysql/my.cnf”
You cannot edit your “my.cnf” file directly. You must use the MAMP PRO interface to edit your “my.cnf” file. In the menu go to File > Edit Template > MySQL > my.cnf.