Cannot install mysql, mysqli, and PDO drivers

Well I have tried to install the mysql drivers in the hopes that at least one of these would work but I have failed. Here is what I did:

in php.ini I removed the semi colons before these lines depending on which driver I am installing

extension=php_pdo_mysql.dll
extension=php_mysql.dll
extension=php_mysqli.dll

And I have extension_dir = “c:/php/ext”

All of the dll files I listed above exist in the c:/php/ext directory. Whenever I execute a mysql, mysqli, or pdo command I get a fatal error or driver error.

Interestingly when I add the following:

extension=php_sqlsrv_55_ts.dll

and download the php_sqlsrv_55_ts.dll file and place it into the c:/php/ext directory, I am able to connect to sql server databases using the sqlsrv commands perfectly. How come my installation procedure works for the sql server extension, but not for any of the mysql extensions?

Thank you for your input.

[ul][li]What version of PHP are you running?[/li]
[li]Did you restart Apache/IIS after installing?[/li]
[li]Have you checked the error logs?[/li]
[li]Have you checked phpini?[/li][/ul]

That’s a quick check, if the answer is not there, we’ll dig a little deeper.

Also are you running Linux or Windows?

Sponsor our Newsletter | Privacy Policy | Terms of Service