Jump to content

Recommended Posts

Windows XP

PHP Version 5.2.5

 

I've installed PDO using the windows installer on their site and have added these two lines to php.ini:

extension=php_pdo.dll

extension=php_pdo_mysql.dll

My extension_dir is correct and I get the exception:

could not find driver

 

My code is:

$dbc = new PDO('mysql:host=localhost;dbname=name', 'user', 'pass');

 

I do phpinfo() and it shows PDO, but nothing is enabled. I have both .dll files in my extension path.

What is the deal?

Link to comment
https://forums.phpfreaks.com/topic/103428-could-not-find-driver/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.