Hi, 

FamiLink Admin <[EMAIL PROTECTED]> asked:
> I am trying to connect to a database using a small script but get this
> error:
> 
> failed: Can't connect to local MySQL server through socket 
> '/var/lib/mysql/mysql.sock' perl

Try

mysql> show variables like 'socket';
+---------------+-----------------------------+
| Variable_name | Value                       |
+---------------+-----------------------------+
| socket        | /var/run/mysqld/mysqld.sock |
+---------------+-----------------------------+

and make sure that your code uses the same socket that query shows.

If that's the case, have a look at its permissions.

HTH,
Thomas

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to