I am having an issue where my connection to mysql server fails with the above message . I have made sure that the
- extension folder = ext is enabled,
- The extension=php_pdo_mysql.dll is enabled as well
- In the extension directory the dll is present.
I must mention this - I have manually downloaded and configured php , apache2 and mysql. although i can run phpinfo correctly , I am not sure if i have to enable something else so as to make my Db connections work
Although if I run this test
if (!defined('PDO::ATTR_DRIVER_NAME')) {
echo 'PDO unavailable';
}
else echo('pdo is available');
I get the message PDO is available. When I was researching for this error I came across php code to test pdo is available? question wherein i happened to get to the above code fragment.
any help would be well appreciated.
thanks