Skip to content

Instantly share code, notes, and snippets.

@lechidung
Created January 5, 2019 04:03
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 lechidung/72cab2fa002de5f72349d45334a6480f to your computer and use it in GitHub Desktop.
Save lechidung/72cab2fa002de5f72349d45334a6480f to your computer and use it in GitHub Desktop.
Fix can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111) on CentOS 7
# Set start service
systemctl start mariadb.service
# Set enable service
systemctl enable mariadb.service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment