MySQL Forums :: Newbie :: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)


Advanced Search

ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
Posted by: Z Nice ()
Date: March 27, 2009 02:54PM

Hey all. I'm new to the forum and to MySQL. I poked around here looking for a solution to my specific issue, but had no luck. If this has been covered ad-nauseum already, feel free to point me toward a relevant thread. In any case:
I installed xampp on my linux (Mandriva '09) machine. I am able to manage my MySQL database via phpmyadmin through my browser and also through the MySQL Administrator gui desktop app. I am able to pull up the console in MySQL Administrator (Tools>>Text Console)and manage the database that way too. When I try to work with the database in bash, however (by running "mysql -h localhost -u root -p"), I get "ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)". I am sure this is some very basic configuration issue (why I'm posting in the "newbie" forum), I'm just not sure exactly what to do.
Thanks,
Nick Z

Options: ReplyQuote


Subject Written By Posted
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) Z Nice 03/27/2009 02:54PM
Re: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) Guelphdad Lake 03/27/2009 07:42PM
Re: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) Z Nice 03/28/2009 12:45PM
Re: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) Agyemang Fellowes 03/30/2009 08:01AM
Re: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) Z Nice 04/11/2009 12:45PM


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.