How to change max_allowed_packet size on MAMP

You must create your own my.cnf due MySQL on MAMP doesn’t have it by default. Do the following steps:

  1. Stop servers
  2. Create a “my.cnf” file in “/Applications/MAMP/conf/”.
  3. Add your content in to “my.cnf”
  4. Save “my.cnf”
  5. Start servers