MySQL Forums
Forum List  »  Newbie

ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
Posted by: seba car
Date: November 03, 2016 03:33PM

I installed MySQL on Linux.
I tried to login with: sudo mysql -u root -p
I couldn't remember my password. I followed steps from this link for resetting the password.
https://help.ubuntu.com/community/MysqlPasswordReset
In this step "start the mysql client process using this command" after entering this command:
"mysql -u root"
I get this error:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

How can I fix this?

Options: ReplyQuote


Subject
Written By
Posted
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
November 03, 2016 03:33PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.