You are here: Re: driver not found error when trying to use PDO, PHP (5.2) and mysql « PHP Programming Language « IT news, forums, messages
Re: driver not found error when trying to use PDO, PHP (5.2) and mysql

Posted by Thomas on 11/24/06 20:28

You need to install pdo_mysql

$ pecl install pdo_mysql

And of course add the .so file to your php.ini, just as you did with pdo.so

That should do the trick.

:o)
Thomas


eholz1 wrote:
> Hello Newsgroup,
>
> I have "installed" pdo using "pecl install pdo" (it intalled version
> 1.0.3),
> I have added the line "extension=pdo.so" to my php.ini file, but when I
> try to use
> the PDO db connect string "$db = new
> PDO('msql:server=dbserver;dbname=menagerie',$dbuser,$dbpass); "
> i get a "driver not found" error.
>
> the pdo.so file is located in
> :/usr/local/lib/php/extensions/no-debug-non-zts-20060613/pdo.so
>
> Any ideas on how to fix this???
>
> eholz1
>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация