INPUT query for cache_menu returns mysql #2006 error in MAMP
Backup and migrate exports the database automatically without (large) values in the cache_menu table. Thus, re-exporting the database using the backup and migrate module solved the issue.