Jump to content

Critical Error Could not connect to the database


snake

Recommended Posts

PLEASE read this properly before replying and telling me to check my connection details etc.

 

This is an existing site, which has been running for months. It is NOT a new site.

The servers are my own, Running Windows 2012 R2 (not interested in any anti-windows, use Linux comments thanks), 1 x web server and 1 x DB server. Resource usage is not high, there are not many databases either.

There are other websites on the same server, which are connecting to MySQL databases on the same database server without any issues at all. All the other sites are running super fast.

 

Today WHMCS and only WHMCS is continually giving the error stated in the subject, and pages are failing to load 99% of the time. Occasionally the page will load, but mostly it will not. However the Admin seems to mostly work, only occasionally giving an error.

Yes the connection details are correct, otherwise the site would have NEVER worked, and the pages would never load and the admin would not be working. The mysql server is the same one being used by the other working sites.

 

here is the full error

 

SQLSTATE[HY000] [2002] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.

 

What would be causing only the WHMCS database to not be working or to get a response when everything else is working fine ?

Link to comment
Share on other sites

You may not like it, but the fact is that WHMCS does not support Windows. Time to move on from your OS to a supported environment.

 

the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.

There's your problem right there. Get with your network / systems administrators, have them diagnose why the servers aren't talking to each other in a timely fashion.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated