Notifications
Clear all

Could not connect to database:

 anhy
(@anhy)
Eminent Member Registered

complete combu setup.

but admin page not connect.

this error message : Could not connect to database.

plz!! how to fix it.

ReplyQuote
Topic starter Posted : 09/02/2021 9:51 am
(@skaredcreations)
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

ReplyQuote
Posted : 09/02/2021 10:27 am
 anhy
(@anhy)
Eminent Member Registered

@skaredcreations

 

The same is true even if you modify the DB.

 

 

ReplyQuote
Topic starter Posted : 09/02/2021 1:18 pm
(@skaredcreations)
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

ReplyQuote
Posted : 09/02/2021 1:25 pm
 anhy
(@anhy)
Eminent Member Registered

Thx. Resolved!!

 

 
ReplyQuote
Topic starter Posted : 09/02/2021 1:39 pm
Share: