Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 03-25-2005, 09:44 AM   #1
Registered: Apr 2004
Posts: 705

Rep: Reputation: 46
Trying to get PHP to work with MySQL

I am using Debian 3.1 testing. I have Apache, PHP, and MySQL installed, and they all work. I installed everything with aptitude.

I can log into MySQL just fine from the command line. But this command:

$conn = mysql_connect( "localhost", "username", "password" );

Gives me the following error:

Fatal error: Call to undefined function: mysql_connect() in /var/www/connect.php on line 3

Any ideas? Thanks in advance.
Old 03-25-2005, 10:58 AM   #2
Registered: Aug 2004
Location: Hull - England
Distribution: Ubunto and slowly switching to debian
Posts: 308

Rep: Reputation: 30
did you configure PHP with mySQL support?


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
phpbb won't work with mysql 4.x and php 4.x Gsee Linux - Software 2 07-27-2005 09:22 AM
Apache, MySql, PHP work on 10.0 but not 10.1 fireman949 Slackware 3 02-28-2005 11:36 PM
mysql doesn't work with php ivanatora Linux - Software 0 02-26-2004 02:28 PM
Apache Mysql Php: mysql with php doesn't work breakerfall Linux - Networking 6 12-27-2003 08:59 PM
getting mysql to work with php dsgdevil Linux - General 8 02-09-2003 09:35 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:35 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
Open Source Consulting | Domain Registration