RE: [PHP] Problem connecting to MySQL with PEAR::DB and mysqli

2005-02-18 Thread Denis Gerasimov
Hello, I suspect that all is OK in your code. I had a very similar problem three days ago. Try connecting to FQDN like [EMAIL PROTECTED] via TCP/IP, not to localhost via UNIX socket. It works in my case at least. BTW it seems to be a DB package bug... write a simple test script with mysqli_*

Re: [PHP] Problem connecting to MySQL with PEAR::DB and mysqli

2005-02-17 Thread Richard Lynch
[EMAIL PROTECTED] wrote: when connecting to MySQL 4.1 using PHP 5 and PEAR::DB I get this error: DB Error: connect failed a closer look gets this: Can't connect to local MySQL server through socket 'localhost' (2) the code for the connection is like this:: public static