MAMP: "#2006 - MySQL server has gone away" while importing database

I was importing a relatively large Drupal database today into MAMP (via phpmyadmin) and MySQL rudely walked off, with the following error: #2006 - MySQL server has gone away Ah, a nice vague error message! It seems that the import statement (from the cache_menu table) in the database dump contains packets which are too large to import using the default MAMP settings. To fix this, I created a my.cnf file in my /Applications/MAMP/conf/ folder with the following contents:...

21 June, 2013