| 
 Posted by Alvaro G. Vicario on 04/04/07 13:04 
*** drblitzkrieg@gmail.com escribió/wrote (4 Apr 2007 01:43:08 -0700): 
> Warning: mysql_connect() [function.mysql-connect]: Can't connect to 
> local MySQL server through socket '/var/lib/mysql/mysql.sock' (13) in / 
> var/www/html/test.php on line 4 
 
Error nº 13 stands for "Permission denied". 
 
Check the permissions of "/var/lib/mysql". In my system they look like 
this: 
 
drwxr-xr-x   44 mysql    mysql        4096 abr  4 10:18 /var/lib/mysql/ 
 
Specifically, users not in mysql group should have "access" permission: 
 
chmod o+x /var/lib/mysql/ 
 
I hope this helps. 
 
 
 
--  
-+ http://alvaro.es - Álvaro G. Vicario - Burgos, Spain 
++ Mi sitio sobre programación web: http://bits.demogracia.com 
+- Mi web de humor con rayos UVA: http://www.demogracia.com 
--
 
  
Navigation:
[Reply to this message] 
 |