Copy one of the sample files, my-small.cnf or my-medium.cnf to the /Applications/MAMP/conf/my.cnf
Then you can try to restart MySQL Server to pickup the configuration.
You can copy the file using this command line.
sudo cp /Applications/MAMP/Library/support-files/my-medium.cnf /Applications/MAMP/conf/my.cnf