I had the same problem.

Ensure that /var has these permissions:   drwxr-xr-x
Ensure /lib is drwxr-xr-x
Ensure /mysql is drwxr-xr-x

That fixed it for me

rick


-----Original Message-----
From: andreas otto [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 28, 2001 6:11 AM
To: [EMAIL PROTECTED]
Subject: ERROR 2002: Can't connect to local MySQL server through socket
'/var/lib/mysql/mysql.sock' (13)


Hi,

Since SuSE 7.1 I experience the following problem using MySQL:

andreaso@php4win:~ > mysql -u root -p
Enter password:
ERROR 2002: Can't connect to local MySQL server through socket
'/var/lib/mysql/mysql.sock' (13)

Looks like I don't get a connection...


andreaso@php4win:~ > su
Password:
root@php4win:/home/andreaso > mysql -u root -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 1 to server version: 3.23.32-log

Type 'help;' or '\h' for help. Type '\c' to clear the buffer

mysql>

Works as root...
And I think I didn't have that problem while using SuSE 7.0

Permissions on mysql.sock are as follows:

root@php4win:/home/andreaso > ls -la /var/lib/mysql/mysql.sock
srwxrwxrwx    1 mysql    daemon          0 Feb 28 08:59
/var/lib/mysql/mysql.sock

This is really bugging me since a week now and I couldn't find a
solution yet. I would really appreciate if someone could help.


Cheers,
Andreas

-- 
andreas otto
london (uk)



---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to