loading

How to fix establishing a database connection error on WordPress

Updated at
18/10/2022
Views
2067

Introduction:

In today's article, I will guide you, how to fix establishing a database connection error on WordPress. So let's get started.

  • Firstly, go to your cPanel account, and then login.
  • After that, find out the Files section, and then click on File Manager option.
  • So now go inside to the public_html, and then find the wp-config.php file.
  • Now right-click on this file, and then click on Edit button.
  • Again, click on edit button, and then here you will find all the credentials of WordPress database username and password.
  • So for fixing this error, You just need to enter the correct database username and password! Whatever is wrong, But if you don't know the exact database username and password, then you can simply go to the Databases section, and then click on MySQL databases option.
  • Here, just scroll down to the bottom, and you can see the current database username, and you can also change the password.
  • So now put the correct database username and password inside the file, and then finally click on the Save Changes button.
  • By using this way, you can fix your establishing database connection error.

YottaSrc footer

why choose us?

Better Pricing, Fast SSD Storage and Real 24/7
Technical Support.

control panel icon
cPanel

Managing Your Site Through CPanel With The Latest Version

security icon
FAST, RELIABLE & SECURE

99.8% Uptime Guarantee.
So Focus On Your Work!

support icon
24/7/365 Support

Day or night, rain or shine,
our team is here for you!

cloud backup icon
Daily Backup

Daily & Weekly Backup.
Your Files Are Safe!