Linux/Unix Troubleshooting MySQL Can't connect to local MySQL server through socket

The Tip Presents a First Simple Troubleshooting for the MySQL Socket Issue.

MySQL Server should Not be Running so Try to Start the MySQL Server…

Common MySQL Server Start-Up Command:

sudo su -c "mysqld_safe &"

Or:

su -c "mysqld_safe &"

Or in Red-Hat like:

sudo systemctl mysqld

If Not Working then Consult the MySQL Documentation for Your Distro 🙂