PDO_MYSQL install

1mind

New member
Joined
Jun 22, 2008
Messages
2
I've googled a lot and also read several postings on this forum but I really get stuck with installing pdo_mysql.

What I tried was installing pdo_mysql with : pecl install pdo_mysql etc. and loading the .so via php.ini. If I run check scripts they all say I have pdo_mysql loaded in the end (also did ./build php afterwards).

I'm running Debian, custombuild DA. I've been trying and trying, but I keep on getting pdo saying:
SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (13)

I checked and the mysqld.sock is there. I also tried to change it's location to /tmp/mysql.sock and /tmp/mysqld.sock without any results.

PDO doesn't seem to be willing to connect.

Anybody who can give me a little hint? Thanks!!
 
Is MySQL service up and running? Try to restart MySQL and check /var/run/mysqld/mysqld.sock (if it's here).
 
Back
Top