Mailinglist Archive: opensuse (5130 mails)

< Previous Next >
Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (13)
  • From: Alan Purchase <alan@xxxxxxxxxxxxxx>
  • Date: Fri, 12 May 2006 14:27:46 +1200
  • Message-id: <4463F2A2.8070902@xxxxxxxxxxxxxx>
Hi All,

When I try to connect to web sites residing on my laptop (both
http://localhost/website and http://localhost/~user/website) I get the
following message:
"Can't connect to local MySQL server through socket
'/var/lib/mysql/mysql.sock' (13)".
The socket in question exists in /var/lib/mysql, it is owned by the
mysql.mysql user and has the necessary permissions (775). Also, the
mysql folder and the database folders within it are owned by mysql.mysql
and have the necessary permissions (775).

Also, when connecting to http://localhost/phpMyAdmin/ I got the
following error message from MySQL:
#2002 - The server is not responding (or the local MySQL server's socket
is not correctly configured).
However, after changing the server name in config.inc.php from localhost
to 127.0.0.1 I can connect to phpMyAdmin successfully.

Has anyone any ideas on what I am doing wrong? I have googled myself
silly to no avail and would appreciate some assistance.

Cheers, Alan.

Alan Purchase
Tregenna Business Services
113 Victory Road
Laingholm
Auckland 1007
New Zealand
||

< Previous Next >
Follow Ups