My issue was caused by IONOS
They resolved it
ionos.com Status – Some websites are inaccessible
-
This reply was modified 1 month, 4 weeks ago by
Chip Dyer.
@sawman268: Your website URL appears to be incorrect. I am unable to access it. If you receive an unexpected message stating “Error establishing a database connection,” you should first contact your host’s support team in case their systems are currently down. You should also check whether the database access data stored in the wp-config.php file is still correct, as provided to you by your host.
Hi, This error usually means WordPress cannot connect to the database server, not necessarily that the database is gone.
I’d check these first:
• Confirm DB_NAME, DB_USER, DB_PASSWORD and DB_HOST in wp-config.php
• Make sure the database server is actually running (sometimes hosting outages cause this)
• Try repairing the database by adding
define(‘WP_ALLOW_REPAIR’, true);
and visiting /wp-admin/maint/repair.php
• If you’re on shared hosting, contact the host to verify MySQL service status
Since another user mentioned IONOS, it could also be a temporary hosting/database server issue. Hope this helps 👍