This usually removes any small glitches in the system which prevent in connection between php and mysql.ĪLSO READ Add Google Analytics To WordPress ( Manual vs Plugin ) Case 4: Clear Website Cache The first step I do is to update the linux: sudo apt upgradeĪnd then reboot the linux to make sure the update is properly applied. In cases where I had my own VPS or dedicated server or when testing on localhost, sometimes this error comes up all of sudden. Once fixed, my WordPress got back to its original state and working good again. This error “sudo: unable to resolve host ip-xx-xx-xx-xx: Temporary failure in name resolution” at first looks like a small error.įixed this and the detailed steps I have instructed here: AWS error – sudo: unable to resolve host ip-xx-xx-xx-xx: Temporary failure in name resolution WordPress: Error establishing a database connection 2 Closing the file with Ctrl + X command showed me a surprise error. I tried to open the wp-config.php file with the following command: sudo nano wp-config.phpĬhecking all the credentials look good. This came as a surprise for me when I tried logging into the AWS EC2 instance when faced with this error. Checking that the database credentials in your wp-config.php file are right is a great first step in troubleshooting database link errors. These credentials are saved in the wp-config.php file in your WordPress installation. You would have been prompted to enter a database hostname, database name, database username, and password when installing WordPress. A few things that will help you to solve this error are listed here. One of my sites running good and suddenly one day I found that it started showing this error. It’s the most annoying type of error as well. The most common type of error and very vague type of error in WordPress is Error establishing a database connection.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |