LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 02-18-2002, 07:51 AM   #1
mac
LQ Newbie
 
Registered: Feb 2002
Posts: 1

Rep: Reputation: 0
Question Can't connect MySQL through PHP


When I run the page, it appears:

Fatal Error : Call to undefined function : mysql_connect() in connectDB.php on line 4

I'm using RedHat 7.2 and have MySQL installed.
Is there any things need to be configured or installed?

Help!!
 
Old 02-18-2002, 09:23 AM   #2
entm
Member
 
Registered: Oct 2001
Location: Atlanta, GA
Distribution: Red Hat 7.0
Posts: 45

Rep: Reputation: 15
Try running a phpinfo() page, and look to see if php is configured to work with MySQL. I have Red Hat 7.0, and php and Apache came configured to work with PostgreSQL rather than MySQL.

You may need to ./configure the php module to recognize MySQL. Check out the man pages and HOWTOs for configuration help with php.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
cannot connect to mysql database from php rocordial Linux - Software 2 08-21-2005 02:05 PM
PHP can't connect to MySQL westchester Linux - Software 13 07-02-2005 10:45 PM
PHP Can Not Connect To MYSQL ombill Fedora 4 09-06-2004 01:24 PM
Can't connect to MySQL server using PHP Lars79 Linux - Newbie 3 08-05-2004 03:13 PM
php can connect mysql, but can't do anything else? towlie Programming 2 04-26-2004 04:17 PM


All times are GMT -5. The time now is 01:34 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration