Hi, I got this Error:
It is possible that the database is overloaded or otherwise not running properly.
The site administrator should also check that the database details have been correctly specified in config.php
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Hey Ismail,
That message usually pops up when there’s a problem connecting to your database. It could be something as simple as a typo in your
config.php
, double-check the database name, username, password, and host just to be safe.Another common issue is that the database server itself isn’t running properly. If you’re on a Droplet, you can try restarting MySQL or PostgreSQL depending on what you’re using. And if your server is low on resources, it might be running out of connections, especially under load.
You can check the status of your database by running
sudo systemctl status mysql
orsudo systemctl status postgresql
depending on what you’re using.Another option is to move to a managed database service like DigitalOcean’s Managed Databases so you don’t have to worry about the database server itself:
If you’re not sure, feel free to share a bit more about your setup (what app you’re running, what kind of database, hosting details).
- Bobby
Heya,
Database server is down
Incorrect DB credentials in
config.php
Too many open database connections
The database server is out of resources (RAM/CPU)
Database permissions or networking issues
Those are the possible causes of the problem you are seeing with the first 2 being the most common.
Check if the database server is running
If you’re using MySQL or MariaDB, run:
If it’s not running, start it:
Check database credentials in
config.php
Open your app’s
config.php
file:Look for:
Verify that:
Host is correct (often
localhost
, but not always)User and password are accurate
Database exists
Test DB connection manually
Run this in the terminal:
Heya, @ismailjamil
If your disk is full, the database may crash or refuse connections. Run:
If usage is near 100%, you can clean up logs or unused files.
Also look at MySQL’s error log will give you the real reason why it’s not starting or failing connections:
Regards