PDA

View Full Version : PDO_MYSQL install



1mind
06-22-2008, 09:37 AM
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!!

smtalk
06-27-2008, 09:32 AM
Is MySQL service up and running? Try to restart MySQL and check /var/run/mysqld/mysqld.sock (if it's here).