Solution for the MAMP \"#2006 - MySQL server has gone away\" error


/ Published in: Bash
Save to your folder(s)

Credit goes to [shyul](http://forum.mamp.info/memberlist.php?mode=viewprofile&u=61837"shyul") and the original forum post here: [original_post](http://forum.mamp.info/viewtopic.php?t=14115"original_post")
You need to modify the following file " ...\MAMP\bin\startMysql.sh" with the code bellow


Copy this code and paste it in your HTML
  1. # /bin/sh
  2. /Applications/MAMP/Library/bin/mysqld_safe --port=3306 --max_allowed_packet=268435456 --socket=/Applications/MAMP/tmp/mysql/mysql.sock --lower_case_table_names=0 --pid-file=/Applications/MAMP/tmp/mysql/mysql.pid --log-error=/Applications/MAMP/logs/mysql_error_log &

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.