Skip to content

Instantly share code, notes, and snippets.

@jaimeivan
Last active September 2, 2022 14:37
Show Gist options
  • Save jaimeivan/5579939 to your computer and use it in GitHub Desktop.
Save jaimeivan/5579939 to your computer and use it in GitHub Desktop.

PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away

En el archivo:

/Applications/MAMP/bin/startMysql.sh

Agregar:

  --max_allowed_packet=64M

ó

En el archivo (si no existe, crearlo)

/Appications/MAMP/conf/my.cnf

Agregar:

[mysqld]
max_allowed_packet = 64M

Error Code: 2013. Lost connection to MySQL server during query

En el archivo (si no existe, crearlo)

/Appications/MAMP/conf/my.cnf

Agregar:

[mysqld]
connect_timeout = 10
net_read_timeout = 30
wait_timeout = 28800
interactive_timeout = 28800
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment