PDA

View Full Version : \"Unable to connect to the photo database server at thi


lewiswax
29th of January 2003 (Wed), 09:20
Hello,

I got this message "Unable to connect to the photo database server at this time" everytime I try to create a new exhibition. I have to say that I'm working on "localhost" because I want to try EE before putting the DB on the Web.

Can we work on our "localhost"? Do I have to work on a server only?

Thanks,

Fred, in Montréal

redbutt
29th of January 2003 (Wed), 11:01
I have no experience with EE, but I'm very experienced in web desingn. Do you have a web server running on localhost? What happens if you just type http://localhost into a web browser.

If you want to work on a web based service, you need a web server to be running. If you don't already have it, I highly recommend getting Apache.

lewiswax
29th of January 2003 (Wed), 15:36
Yes, I have Apache on my PC. I install it form http://www.easyphp.net...

ega1
29th of January 2003 (Wed), 16:01
lewiswax wrote:
Yes, I have Apache on my PC. I install it form http://www.easyphp.net...


Do you also have MySQL? Is it running?

lewiswax
29th of January 2003 (Wed), 17:58
Yes, when I start Easyphp, Apache and MySQL are running... Could it be the version of Apache or MySQL? Easyphp include : apache 1.3.24 - php 4.2.0 - mysql 3.23.49 - phpmyadmin 2.2.6 - pear

lewiswax
29th of January 2003 (Wed), 18:54
I was able to add photos to "New Exhibition".

And it seems that the DB doesn't recognize the pass "public" as the password. If I enter public, then I get the "unable to connect..." message error.

Any idea with this new information?

Pekka
29th of January 2003 (Wed), 19:24
Try:

$servername = "localhost";
$databasename = "yourdatabasename";
$username = "root";
$password = "";

I.e. username root and no pass at all.

lewiswax
29th of January 2003 (Wed), 20:46
Cool, thanks Pekka, it works now! ;-)