Unable to connect to database. A database error occurred while processing this request.
So... website is destroyed now, right? I have to somehow upload a backed-up database in order to fix this?
- Check your server to make sure the database server is actually running - you may have to contact your hosting company. If you have phpmyadmin use that to try to connect to the database
- somehow your database access info has changed or maybe you changed your database user and pass in your config/site.php
I was able to reload the page I edited from the browser history, click Edit and Exit and Publish again. That solved everything.
Big quirk whatever it was. I really think it was some problem with 2 people signed in at once with the same user name. It was very scary.
I tried to connect to my database via MySQL, and the connection failed. I run a dedicated server, and MySQL showed as running in DirectAdmin, but was not responding.
I also noticed that my server memory was being used at about 96%, which is very abnormal.
A server reboot was able to restore the MySQL connecion, and thus the web site is back up.
Glad it was an easy fix!