ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
sudo chown -R _mysql:mysql /usr/local/var/mysql
sudo mysql.server start
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
sudo chown -R _mysql:mysql /usr/local/var/mysql
sudo mysql.server start
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
sudo /etc/init.d/mysql start
ERROR 2002 (HY000): Can
# This is usually caused by the fact that the
# MySQL Server isn't even running
# On Windows, check your services, if its not running
# start it, or install and start it.
# On *nix, for this example Debian based
# Firstly see if it's even running
ps aux | grep mysql
# If you dont see any process other than your grep call,
# It's not running
# Assuming you have mysql-server installed
# Start it
sudo /etc/init.d/mysql start
# Otherwise install it, configure and start it up as above
sudo apt-get install mysql-server
# Goodbye 2002
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us