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 eholz1 on 11/25/06 03:45

Thomas wrote:
> 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
> >

Hello again,

I did get the pdo_mysql file as you suggested. and even uncommented
the extesion_dir in php.ini.
One problem - I entered the directory -
/usr/local/lib/php/extensions//no-debug-non-zts-20060613/ where both
files reside (pdo.so, and pd0_mysql.so), but after I make that change
to the php.ini file, apache will not start. I then copied the files to
other places, but no luck apache would start but I still get the
"driver not found" error.
Perhaps I need to rebuild php???

Thanks,

ehol1

 

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

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