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/27/06 01:04

Thomas wrote:
> You shouldn't have to rebuild PHP. What errors are Apache throwing when
> trying to start?
>
> What value do you have in extension_dir in php.ini?
>
> Are you trying to load pd0_mysql.so, when you really should load
> pdo_mysql.so?
>
> Regards,
> Thomas
>
>
> eholz1 wrote:
> >
> > 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
> >
Hello Thomas,
Thanks for info. I have discovered something, but it is strange! If
specify "extension_dir = /usr/local/apache2/extentions" AND put the
pdo.so and/or pdo_mysql.so (not pd0 a typo in posting) in that
directory (or if I put those files in ANY dir defined in the
"extensions_dir") apache will not start, and will not give any erors
(in access_log or error_log). So it seems that Apache (2.2) does not
like those files for some reason - maybe they did not intall properly
or are corrupted. As long as I do not put the files in the referenced
directory Apache will start (but PDO will not work either!)
Let me know what you think.
Eric

 

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

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