Skip to content

Instantly share code, notes, and snippets.

@jalogut
Last active March 15, 2018 12:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jalogut/f507f13b27f7a63d936edd58fad5e121 to your computer and use it in GitHub Desktop.
Save jalogut/f507f13b27f7a63d936edd58fad5e121 to your computer and use it in GitHub Desktop.
Mysql ~/.my.cnf to fix MYSQL has gone away issue
[mysqld]
sql_mode=STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
# https://expressionengine.com/blog/mysql-5.7-server-os-x-has-gone-away
interactive_timeout = 300
wait_timeout = 300
# https://github.com/Homebrew/legacy-homebrew/issues/47335
table_open_cache = 250
# Check also https://github.com/magento/magento2/issues/2805
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment