On 3 Nov 2006 12:44:49 -0800, in comp.lang.php
so*****************@gmail.com
<11**********************@h48g2000cwc.googlegroups .comwrote:
>| 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.
---------------------------------------------------------------
jn******@yourpantsyahoo.com.au : Remove your pants to reply
---------------------------------------------------------------