Could not connect t...
 
Notifications
Clear all

Could not connect to database:

5 Posts
2 Users
0 Reactions
429 Views
 anhy
(@anhy)
Posts: 20
Eminent Member
Topic starter
 

complete combu setup.

but admin page not connect.

this error message : Could not connect to database.

plz!! how to fix it.

 
Posted : 09/02/2021 9:51 am
(@skaredcreations)
Posts: 805
Prominent Member Admin
 

Did it create the tables in the database during the database setup (second step in /_setup)?

That error clearly says that there's a problem with the connection to the database, so either the username/password is wrong or the tables were not correctly created. I see that you're on localhost in Windows, so make sure that the table names are capitalized (for example: Achievement and not achievement), if the tables' names are in lowercase then you need to enable the case sensitivity in your mysql configuration as written here.

FRANCESCO CROCETTI @ SKARED CREATIONS

 
Posted : 09/02/2021 10:27 am
 anhy
(@anhy)
Posts: 20
Eminent Member
Topic starter
 

@skaredcreations

 

The same is true even if you modify the DB.

 

 

 
Posted : 09/02/2021 1:18 pm
(@skaredcreations)
Posts: 805
Prominent Member Admin
 

Look at /lib/config.php and try to use either localhost or 127.0.0.1 as GAME_DB_SERVER (and check if GAME_DB_USER and GAME_DB_PASS are correct there) also I see that you have a prefix "combu" in your table names so make sure it's specified in GAME_DB_PREFIX, sometimes the PHP database connection works with one of them and not the other for local databases. If you'll still have issue with the database connection then you could schedule a chat on Discord/Skype/GoogleChat to check out what's wrong in your configuration.

FRANCESCO CROCETTI @ SKARED CREATIONS

 
Posted : 09/02/2021 1:25 pm
 anhy
(@anhy)
Posts: 20
Eminent Member
Topic starter
 

Thx. Resolved!!

 

 
 
Posted : 09/02/2021 1:39 pm
Share: