If you're seeing "Database connection failed" or "Error establishing a database connection" in OJS, your journal is completely inaccessible—authors can't submit, reviewers can't access manuscripts, and readers can't view articles. This is one of the most critical OJS errors, and every minute of downtime affects your journal's credibility and workflow.
What This Error Means
OJS stores everything in a MySQL/MariaDB database—articles, user accounts, submissions, review assignments, settings. When the connection fails, OJS literally cannot function. The site either shows a blank page, a generic error, or explicitly states the database connection failed.
Common Causes
Database server is down or overloaded
Incorrect credentials in config.inc.php (after migration or password change)
Open your config.inc.php file and verify the database section has the correct hostname, username, password, and database name. If you recently migrated hosts or changed passwords, this is likely the issue.
If credentials look correct, the problem is likely server-side—database corruption, crashed MySQL service, or hosting issues that require server access to diagnose.
When You Need Professional Help
Database issues can escalate quickly. If your database is corrupted, you risk permanent data loss—years of submissions, review history, and published articles. Attempting fixes without proper backups or database expertise can make things worse.
Warning signs you need expert intervention:
Credentials are correct but connection still fails
You don't have server/SSH access to check MySQL status
Error appeared suddenly without any changes on your end
You're mid-migration and something went wrong
Database needs recovery from backup
Journal Down? Get Emergency Support
We diagnose and fix OJS database issues fast. Most sites restored within hours.
We don't just reconnect your database—we identify why it failed and prevent it from happening again. Our OJS database recovery service includes connection diagnosis, credential verification, MySQL service repair, database integrity checks, and if needed, restoration from backup with minimal data loss.
Altechmind Technologies specializes in OJS troubleshooting, migration, and emergency support. View all OJS services →