Trying to set up a mysql db on apache 2

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
User avatar
Bomas
Forum Newbie
Posts: 24
Joined: Sun Oct 17, 2004 2:41 am
Location: Heverlee, Belgium

Trying to set up a mysql db on apache 2

Post by Bomas »

Hi,
i've been trying to setup a mysql 5.0 server under apache 2, but it seems not to be working.

The problem is: nothing shows up when i'm trying to get data out of my "demo" database.
No errors appear, there's just nothing showing up.
Any ideas?

do i have to change somethin to the httpd.conf from apache, or don't i?
i've noticed on other servers, when running the 'phpinfo()' function, that it said: --with-mysql=usr/
that doesn't appear with me.

Thanx in advance,
Bomas
josh
DevNet Master
Posts: 4872
Joined: Wed Feb 11, 2004 3:23 pm
Location: Palm beach, Florida

Post by josh »

edit your php.ini to display error messages and set error reporting to E_ALL, and then make sure you are checking for mysql errors

Code: Select all

mysql_connect('localhost', 'root', '') or die("cound not connect :".mysql_error());
Post Reply