Problem with ADO

Panu

Joined: 2002-11-11
Posts: 37
Posted: Mon, 2002-11-11 16:23

whet trying to setup G2 I'm stuck in DB setup. it informs me:
Warning: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)...
....gallery2/lib/adodb/drivers/adodb-mysql.inc.php on line 119

My MySQL socket is in var/lib/mysql/mysql.sock

Where do I change the ADO setting for it?

Thanks and keep up the good work.

Panu

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Wed, 2002-11-13 22:07

This looks to be a PHP configuration issue, not Gallery/ADO related. The code is calling mysql_connect(), which is giving you that error message.

Looking at my phpinfo, I see there's a "MYSQL_SOCKET" variable in the mysql section that governs where the socket lives. You probably need to correct this value in your php.ini.