Skip to content

Instantly share code, notes, and snippets.

@leewin12
Created September 6, 2019 13:01
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 leewin12/119c7189440a506b38a0242bccff21c7 to your computer and use it in GitHub Desktop.
Save leewin12/119c7189440a506b38a0242bccff21c7 to your computer and use it in GitHub Desktop.
Percona MySQL 5.7.x limits config
$ vim /etc/systemd/system/mysql.service
[Service]
LimitNOFILE = infinity
LimitCore = infinity
LimitMEMLOCK = infinity
$ systemctl daemon-reload
$ service mysql restart
$ ps -ef | grep mysql | awk '{print $2}' | head -n1 | xargs -I{} cat /proc/{}/limits
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment