![]() ![]() You can do that by accessing your cPanel and navigating to File Manager. However, if you cannot access your WordPress dashboard, you can deactivate your WordPress theme or plugins by renaming the corresponding folders in your cPanel. After that, try to enable plugins one by one to find the culprit. If you have activated a new theme for your website and then received an error message Error Establishing A Database Connection, then you can log in to your WordPress dashboard again and navigate to Appearance –> Theme, and there activate another theme from the available options.Īlso, you can disable all of your used plugins if changing the theme doesn’t solve the issue. One more possible reason might be that your website’s theme or plugins are corrupted. If you do not do that, anyone could access the repair page URL without being logged in. Once the database is repaired, do not miss to go back to your website’s wp-config.php file and remove added command. There you will see two options to repair your website’s database: So you can easily repair the database by inserting the following command into your website’s wp-config.php file: define('WP_ALLOW_REPAIR', true) Īlso, make sure to put that command right before the section “That’s all, stop editing! Happy blogging.”Īfter saving these changes, you should open your website link by adding some details to the URL There you might get an error message that indicates that you should repair your database. ![]() If something is corrupted in your database, you might confirm that by accessing your WordPress dashboard. WordPress MySQL database contains a lot of information, so if something is corrupted or deleted in your database, you might get this error message when you try to access your website. At Hostens, you should use localhost as your database host. However, if the error message is still shown, you might need to check your database host’s information. Your browser might be cached, so before opening your website, try to access your site via another browser or clear your browser’s cache. Also, do not miss to update the database password in wp-config.php file by resetting the password in the MySQL database.Īfter updating these details, you need to try to reaccess your website and check whether or not the error message is not shown. So if login details in your wp-config.php file are different from your MySQL database settings, you will need to update them that these details would match your details in the wp-config.php file. There you should find MySQL details of your database name, username, and password.Īlso, you will need to navigate to MySQL Databases and check there your database name, username of this database. Then you need to open that file in editing mode. So after opening it, then you should find the wp-config.php file of your website. Also, you can access your website files via FTP. The most common cause of this error is incorrect login details for your database.įirst of all, log in to your cPanel account and navigate to File Manager, where you need to find your website folder. So here you will find the main solutions how to fix this error. So if something fails in this step, your website will not load successfully, and you or website visitors will see this error Establishing a Database Connection error in the browser.Īlthough this error is quite serious, usually it can be fixed really quickly. Since WordPress uses PHP as the primary language and MySQL as the database, specific PHP commands get your website’s information from the database when your website visitor visits your website. ![]() Error Establishing a Database Connection is pretty standard error and it indicates that your website is not working correctly and failed to get the information needed to access the page successfully.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |