You are here: Re: PHP Not Recognizing MySQL « PHP Programming Language « IT news, forums, messages
Re: PHP Not Recognizing MySQL

Posted by Jeff North on 11/03/06 22:18

On 3 Nov 2006 12:44:49 -0800, in comp.lang.php
solitary.wanderer52@gmail.com
<1162586689.662665.267820@h48g2000cwc.googlegroups.com> wrote:

>| I am running PHP5 under Linux. Just a newbie and would like to have it
>| integrated with MySQL. When I execute
>| phpinfo() in a webpage, I see tons of info on php, but nothing on
>| MySQL. Perhaps this is because I installed
>| MySQL after I installed PHP. Is there a way to get PHP to recognize
>| MySQL?
>|
>| Thanks, Steve

PHP5 has mySQL disabled by default.
Have you set the php.ini file to use the mysql extension?
I use Windows so the following my not be exactly correct for Unix
Open php.ini in text editor
Locate the ; Dynamic Extensions ; text within the file
Scroll down until you find ;extension=php_mysql.so
Remove the semi-colon from the line
Save file
Stop and restart web server.
use phpinfo() to see if access is now available.
---------------------------------------------------------------
jnorthau@yourpantsyahoo.com.au : Remove your pants to reply
---------------------------------------------------------------

 

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

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