Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
0 votes
631 views
in Q2A Core by

After reaching 290+hits at a time, got this error for few seconds. But recovered on page refresh

Could not establish database connection. Please check the username, password and hostname in the config file, and if necessary set up the appropriate MySQL user privileges.

Q2A version: 1.8
by
you need more ressource in your server if you are in shared hosting or VPS
by
edited by
Your image doesn't work.

What tool are you using to measure this? And what do you get for Q2A 1.7?

1 Answer

+1 vote
by
selected by
 
Best answer

I agree with Hypo. You will need to get more detailed error information with PHP error log. If "PHP Question2Answer MySQL ..." recorded in the error log, following information will be recorded there.

  1. Error type
  2. Error no.
  3. Error sentense
  4. Error query (In case of query error)

And, you will need to know about database limit settings (e.g. max_connections, max_allowed_packet, etc, etc). If your server is a shared server, you may not be able to change these settings. However, if your server is VPS or dedicated server, it may be resolved by changing these settings.

Anyway, it is important to explore the cause accurately.

...