Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
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.


  Search this Thread
Old 02-18-2002, 07:51 AM   #1
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?

Old 02-18-2002, 09:23 AM   #2
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.


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 > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:41 PM.

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