When I run a Web page with the function "phpinfo();", I can see there is option for PgSQL only.
However, I am sure that PgSQL has stopped and MySQL has started as I have checked in Linux.
What should the problem be?
Main Topics
Browse All TopicsI install Apache, PHP 4.1.2, MySQL in RedHat 7.3. But I got the error message above.
Could anyone help me?
Thanks very much for the attention.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
i have not tried it but i hear u can install mysql-php rpm file if u are installing on red hat which is d case. My Linux server crashed today. do a find for mysql-php rpm from google. its actually on the rpmfind web site.
this should help. i wonder why we it was not compiled with mysql support from the scratch.these are d things that frustrate about linux.
"Error: "Fatal error: Call to unsupported or undefined function mysql_connect() in .." This means that your PHP version isn't compiled with MySQL support. You can either compile a dynamic MySQL module and load it into PHP or recompile PHP with built-in MySQL support. This is described in detail in the PHP manual. "
Can some one tell me how can I do this?
Win XP
php-5.0.1
mysql-4.0.20d-win
Look at the links in the URL below, I had the same pb :
http://www.experts-exchang
Along this subject: the "mysql_connect" error occurs to me on the command line, but not the browser. My phpinfo says php 4.3.1 while command line php -v is 4.1.2. I'm trying to make the command line behave like web PHP or be able to use php 4.3.1 on the command line for cron processes. Any suggestions?
Jared
One other thing to remember especially when installing "special" packes like from Fedora when upgrading (from PHP v4x.x to v5.x.x). You can not simply copy the /etc/php.ini file. Stupid me did this ... nothing worked. I checked all the above but still not working ... and finally I did a file compare, for example the loading of modules is changed from:
extension_dir = /usr/lib/php
to
extension_dir = /usr/lib/php/modules
This will cause for example in my case that mysql can not connect to the mysql module (took me a couple of days to find that out!). To avoid this type of errors; copy original /etc/php.ini to .org. Use tkdiff to look for the differences and open a second window to edit (is also possible with tkdiff but this leaves space for own interpretation ;-)).
yum install tk
yum install tkcvs
tkdiff /etc/php.ini /nfsmounttoactiveolderserv
vi /etc/php.ini
Business Accounts
Answer for Membership
by: davlun20080Posted on 2002-08-29 at 20:45:18ID: 7250473
Not sure, but it sounds like mysql is not enabled on your build of php.
Make a page with just this on it:
<?php
echo phpinfo();
?>
save it to your web server and then see what it says.
If mysql is enabled, you should see a table called mySQL and the next column should say 'enabled'
davlun