I got problem with my website database, as you can see in the attached image below. Unfortunately My Dev and I have no idea what's going on. I think this trouble occurred after WP installation.. For temporary solution, we just restart the server every this error happens. Is there any suggestion how should we fix this trouble?

enter image description here

  • We're probably unlikely to be able to help with this here. It's very specific to the individual code in use in your application. You'd need to ask your dev or... find a dev who knows how to resolve it. – Tim Malone Jul 12 '16 at 3:30
  • Actually, this sounds to be like your database has shutdown for some reason or simply has become unresponsive - likely an error or a bad query such as producing a cartesian product. Have you checked your database log files for clues?? Look specifically at nested query result sets. This takes a keen eye and if you are not a DBA, it can be easy to find, but not so easy to understand. – closetnoc Jul 12 '16 at 4:21
  • You may also be running out of connections due to bad queries that never complete. Again, think cartesian product where the query runs in a tight loop with no result. It is often a condition that is being produced a result set that will always exist and never end. In my comment, I was thinking you were thrashing the system, but then I remembered that you could also be running out of connections because your queries never end and keep the connections open. Again, check your log files for the query. In fact, this one makes the most sense to me right now. – closetnoc Jul 12 '16 at 4:46
  • @closetnoc Thanks for your reply. I'll check the log. – Rifqi Abidin Jul 12 '16 at 6:13
  • 1
    You don't provide enough information to solve the issue. At a minimum you should edit your question to provide any relevant information from log files. – Stephen Ostermiller Jul 12 '16 at 8:21

Browse other questions tagged or ask your own question.