Notifications
Clear all

Setup Issue

4 Posts
2 Users
0 Reactions
1,045 Views
(@jackmariani)
Posts: 11
Eminent Member
Topic starter
 

Hi!

I'm having some issues in the installation setup.

Sql installed with myPhPAdmin. Host: hostgator.

I'm trying to enter the server backend, but I receive the following message:

Error creating the default admin account ()

"Warning: mysql_error(): supplied argument is not a valid MySQL-Link resource in /***/admin/index.php on line 23"

You can try it here: http://*/admin/

I'd like to use the subdomain, but I tried it also in the main domain:  http://*****/admin/

 

I think it's a problem in the config.php... but I can't find it.

My config looks like this:

--------------------------

define ("URL_ROOT", "/combu/"); //

define ("SECRET_KEY", "mypass");

define ("GAME_DB_SERVER", "localhost"); // here I also tried the IP I found in my hostgator panel 

define ("GAME_DB_NAME", "mydb"); //double checked multiple times

define ("GAME_DB_USER", "myuser"); //double checked multiple times

define ("GAME_DB_PASS", "mypass"); //double checked multiple times

--------------------------

Is it possibly an hostgator problem?

 
Posted : 02/09/2014 7:40 pm
(@skaredcreations)
Posts: 805
Prominent Member Admin
 

I tried your URL but it seems to work fine, I succeeded to login with the default admin credentials. Maybe you already fixed?

FRANCESCO CROCETTI @ SKARED CREATIONS

 
Posted : 02/09/2014 7:44 pm
(@jackmariani)
Posts: 11
Eminent Member
Topic starter
 

Thank you very much for the quick reply!

And I don't know how it happenend... I didn't change anything.

It was giving the error some minutes ago! I swear!

 

Maybe it was something in my connection that had not triggered the admin account creation.

For example here in the other web address is still not working:  http://*******/admin/

 

But hey, now it is working! So thank you anyway.

 
Posted : 02/09/2014 8:00 pm
(@skaredcreations)
Posts: 805
Prominent Member Admin
 

Pretty strange, if you want to debug and understand why the connection is not working then you can edit /lib/Database.php at lines 42 and 54 and remove the "@" right before mysql_connect and mysql_select_db. With these changes you should see in the page the reason why the connection or database select are being refused.

FRANCESCO CROCETTI @ SKARED CREATIONS

 
Posted : 02/09/2014 8:06 pm
Share: