470,594 Members | 1,106 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,594 developers. It's quick & easy.

PDO not connecting to MySQL

Dormilich
8,656 Expert Mod 8TB
Hi,

Iím having a problem connecting to my local MySQL db. my PHP DB code throws the following Exception:
PDO::__construct() [<a href='pdo.--construct'>pdo.--construct</a>]: [2002] No such file or directory (trying to connect via unix:///tmp/mysql.sock)
I suspect the socket being wrong since all my MySQL GUI clients connect via /opt/local/var/run/mysql5/mysqld.sock.

does anyone know, if thatís a correct assumption?

thanks Dormi
Oct 1 '09 #1
0 2509

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

3 posts views Thread by kamilla | last post: by
4 posts views Thread by CodeImp | last post: by
4 posts views Thread by sympatico | last post: by
3 posts views Thread by Jeremy Dillinger | last post: by
7 posts views Thread by Frances | last post: by
3 posts views Thread by Paradox Synthesist | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.