|
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]
|