View Full Version : Trouble with Setup
John - NJ
11th of April 2002 (Thu), 10:12
I'm getting the following error:
Unable to connect to the photo database server at this time
PLEASE PRESS REFRESH ON YOUR BROWSER TO TRY AGAIN.
Anyone know what this means? I can't get past the setup. Thanks.
HotDogOne
11th of April 2002 (Thu), 17:58
EE is having difficulty connecting to your server side database that will store the information.
Did you alter the settings in the connect.php file in the 'add' directory? I forgot to do that and got the same error when I installed 1.05
You need to replace anything in CAPITALS with your own settings see below:
So you need to replace USERNAME, PASSWORD and DATABASENAME - but dont touch anything else.
Email me if you continue to have problems.
stefrench@ntlworld.com
John - NJ
11th of April 2002 (Thu), 18:21
HotDogOne wrote:
You need to replace anything in CAPITALS with your own settings see below:
$dbcnx = @mysql_connect("localhost", "USERNAME", "PASSWORD");
if (! @mysql_select_db("DATABASENAME") )
So you need to replace USERNAME, PASSWORD and DATABASENAME - but dont touch anything else.
Stephen:
Do you leave all of the quote marks " " in?
Do you leave "localhost" as is?
Thanks.
HotDogOne
12th of April 2002 (Fri), 02:57
Yes and Yes :) Check your email. :)
John - NJ
12th of April 2002 (Fri), 09:11
Stephen:
I started with a fresh copy of connect.php and only changed the items you listed. I kept the quotes in. I'm still getting the error message:
Unable to connect to the photo database server at this time
PLEASE PRESS REFRESH ON YOUR BROWSER TO TRY AGAIN.
Maybe Pekka has some suggestions.
Thanks.
Pekka
14th of April 2002 (Sun), 13:38
All the errors you get are because the database (socket) connection cannot be done. Could be a server configuration problem. I've also seen this happen when MySQL server is overloaded (server restart fixes that).
See http://www.mysql.com/doc/C/a/Can_not_connect_to_server.html
Try running that info.php which comes with EE. It gives you a lot of data, and there you have one box with MySQL configuration info.
Try also in connect.php:
$dbcnx = @mysql_connect("localhost", "root");
John - NJ
14th of April 2002 (Sun), 21:01
Pekka wrote:Try running that info.php which comes with EE. It gives you a lot of data, and there you have one box with MySQL configuration info.
I looked for a file named info.php in the full download and it's not there. Is it something that's created during setup? Since I can't get setup to run I'm not sure.
Thanks.
Pekka
15th of April 2002 (Mon), 09:29
Hi John,
No, it was my mistake - it is "php_version.php" (it was once info.php during developement few weeks ago...)
Pekka
John - NJ
15th of April 2002 (Mon), 13:44
Thanks for the help.
It turns out that I could not use "localhost" in the connect.php file. mySQL is kept on a different server so I needed to include that server name.
I ran setup and received the following message:
OK. Zero errors. Exhibit Engine 1.05 MySQL database installation is complete.
Now I can go on to the next step.
Thanks again.
vBulletin® v3.6.12, Copyright ©2000-2009, Jelsoft Enterprises Ltd.