This is my first LQ post, but I've been using Slackware since around 2000.
A few days back I upgraded to -current (just before the most recent major update), which included httpd-2.4.2-i486-2 and php-5.4.3-i486-3. There were quite a few changes to httpd.conf, which I've integrated into my httpd.conf, but I can't get php to connect to the local mysql database using Pear::MDB2 any more.
The database is working fine, I can log in directly, and the webserver seems to be doing everything else right, but when connecting to mysql I always get
Code:
MDB2 Error: connect failed
I've upgraded from stable to the latest beta MDB2 library, but that didn't help:
Code:
MDB2 2.5.0b3 beta
MDB2_Driver_mysql 1.5.0b3 beta
I'm using the following as my connection string:
Code:
$db_options = array('debug' => 2);
$db =& MDB2::factory("mysql://${user}:${pass}@localhost/${db_name}", $db_options);
I've tried loading all the modules I could in httpd.conf, but to no avail, is there some other setting in httpd.conf I need to use to get this to work again? Can anyone give me any more pointers?
Cheers,
Trevor.