PDA

View Full Version : Linux (Fedora) MySQL trouble


Clueless_Coder
11-26-2007, 10:56 PM
I'm currently trying to complete a MySQL book I purchased. I have installed the server and client applications. When I go into the terminal to run MySQL, I get the following message:

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

Not sure what exactly this means. I did look in the mysql directory and the sock appeared to be there.

Still fairly new to Linux, but it's all I have to work with. Any help would be appreciated.

Fumigator
11-27-2007, 02:36 PM
I haven't seen that error before, so I googled +mysql +"ERROR 2002" and got 43,000 hits, the first page having 4 or 5 solutions to the problem. It appears to be related to the my.cnf file and/or permissions.

Clueless_Coder
11-27-2007, 04:26 PM
I haven't seen that error before, so I googled +mysql +"ERROR 2002" and got 43,000 hits, the first page having 4 or 5 solutions to the problem. It appears to be related to the my.cnf file and/or permissions.
Are you trying to tell me I should have done more research? :p

I took the same approach initially, but found myself getting confused reading the pages that came back as hits. Didn't know if someone had run into this before. Suppose I'll look some more and return if I have any questions. Thanks.