PDO MySQL error: could not find driver
Posted by: baptiste (---.server.ntli.net)
Date: October 06, 2006 09:12PM

I've written some db classes that use PDO to connect to MySQL db, however I'm getting the following error:
"could not find driver"
phpinfo is saying:
PDO drivers : sqlite, sqlite2

So the PDO driver for MySQL is missing, how do I install it?

OK, ignore this post, I've discovered the admin stuff in the tray!



Post Edited (10-07-06 09:13)

Options: ReplyQuote
Re: PDO MySQL error: could not find driver
Posted by: roms (---.fbx.proxad.net)
Date: October 08, 2006 09:15AM

glade you found by yourself ;-)



Romain

Options: ReplyQuote
Re: PDO MySQL error: could not find driver
Posted by: Ericx_25 (---.217.146.191.coditel.net)
Date: October 19, 2006 08:39PM

I am having the same problem,

Please explain how to install the missing PDO driver for MySQL ?

Eric

Options: ReplyQuote
Re: PDO MySQL error: could not find driver
Posted by: CyberSpatium (71.237.217.---)
Date: October 20, 2006 08:54PM

make sure you enable the pdo extensions in your php.ini file. to enable this extension, start wamp, then use the wamp tray icon menu and to to:
php settings -> php extensions (located at the very bottom of the list) and enalbe php_pdo_mysql and if you want to use pdo with sqlite, then also enable php_pdo_sqlite.

after you change each setting, wamp will automatically restart apache for your new settings to take effect. then open up your phpinfo and pdo should be there.

[www.sitepoint.com]

Options: ReplyQuote


Sorry, only registered users may post in this forum.