Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.

[bug?] Could not establish database connection

+3 votes
asked Apr 23, 2017 in Q2A Core by ProThoughts

I do have wordpress and q2a on same server, I know when user load is too much I can expect below kind of error but site is not coming back after this. I need to reboot server to fix this issue. whereas my wordpress site works normal after user load is low, it recovers back(wordpress is slow when I see below error for Q2A but never get any db error for wordpress). I feel this is real issue with Q2A but you may be having diff views. Could anyone explain me please. thanks.

some people already complained about this.



Q2A version: 1.7.4
commented Apr 26, 2017 by Scott
Are there any errors in the error logs? You could also try turning on the MySQL slow query log, maybe there is a particular query that's very slow.
Also check how many queries are running per page, maybe a plugin is making a lot of queries?
commented Apr 27, 2017 by ProThoughts
I will check that when I see this kind of issue and update you.

My wordpress site recovers and shows normal loading speed but q2a will be down and never comes back.

1 Answer

+1 vote
answered Apr 24, 2017 by sama55
Check your raw error log. Error number of MySQL is recorded there.

It may be issue related MySQL configuration (max_connections, etc).