Establishing A Database Connection
- June 2, 2015
- Leave a comment
If you have been on WordPress long enough, you have probably experienced the frustration that comes with a failed database connection. Simply put, this malfunction indicates that the process has been held up by at least one broken component. A problem might exist in wp-config.php file. It might also be your host’s issue, and it could mean that your site has been hacked. Prior to jumping to this conclusion, though, implement the following solutions:
Edit wp-config.php file:
Your problem may be as easily outwitted as editing the “wp-config.php” file. Open it via C/Panel File Manager or FTP and double-check that your database name, host, username and password are valid.
Fix issues with web host:
Sorry to be the bearers of bad news but if your web host is the true culprit, you’ll need to contact your provider directly. It may be that the server is down or that your database has been frozen because you have exceeded storage without realizing.
Scan website to check if hacked:
The final possibility is that your site has been hacked. Don’t panic; scan it. We suggest ‘Sucuri Sitecheck’. It’ll give you either peace of mind that hackers are not your issue or the knowledge that they are, and the ability to handle it. If you have been hacked, follow this link, where WordPress codex have already addressed the steps you should take.