Skip to content

Instantly share code, notes, and snippets.

@trydofor
Created May 7, 2018 09:25
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 trydofor/10e0f4af290671928e9c99ebec76bb4b to your computer and use it in GitHub Desktop.
Save trydofor/10e0f4af290671928e9c99ebec76bb4b to your computer and use it in GitHub Desktop.
Ubuntu – mysql 5.6 – max connections 214
# append to [Service]
sudo tee -a /lib/systemd/system/mysql.service << EOF
LimitNOFILE=infinity
LimitMEMLOCK=infinity
EOF
sudo systemctl daemon-reload
sudo service mysql restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment