Not able to login into mysql database in RHEL7

Solution Verified - Updated -


  • While login into mysql database , throwing an error:
$ mysql -u root -p -S /home/lib/mysql/mysql.sock/
Entered the password.
ERROR 2002 (HY000) : Can't connect to local MySQL server through socket '/home/lib/mysql/mysql.sock/' (2)


Red Hat Enterprise Linux 7
Red Hat Software Collections

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In