Join Our Affiliate Network & Earn Up To $125 Per Sale! Earn Thousands!

Screenshot 2022 02 06 221007

How To Update WordPress Database Credentials

istockphoto 1315021255 612x612 1
Reading Time: < 1 minute


WordPress is a powerful content management system that can be used to create everything from simple blog posts to complex business websites. Your WordPress site’s database stores all of its data, and if your database isn’t secure it can become compromised by hackers.

Backup your site files and database before updating WordPress

Before you begin, it’s important to make sure that you’ve backed up your site files and database. This is a step that many people skip, but it’s important because there are cases where your update goes wrong and you need to restore the backups in order to get things working again.

Edit wp-config.php to reflect new database credentials

The first step is to open your wp-config.php file in a text editor, like Notepad or Wordpad. Then, find the following lines of code:




Once you’ve found these three lines of code, replace them with your new database credentials. Save and close the file before you proceed with the next steps below!

Test the site to ensure it loads correctly

The next step is to test the site to ensure it loads correctly. It’s possible that there was a glitch during the update process and you need to troubleshoot.

If you can’t access your site after the update, try clearing your browser cache and cookies. Clearing these will help resolve any issues with cached data.


We hope you found this guide helpful, and if you have any questions or comments please don’t hesitate to leave them in the comments section below. Thanks for reading!

how many website are there on the internet

How Many Website Are There on The Internet?

Reading Time: 2 minutes Introduction Have you ever pondered the vastness of the internet? In a world where digital connectivity is an integral part of our

Cheap Hosting company in Nigeria

Cheap Hosting Company in Nigeria

Reading Time: 2 minutes Introduction Hello there! We are Fusion Arc Hosting, your trusted Litespeed Cheap Hosting Company in Nigeria. We understand the importance of having

hero guarantee 610x362 1

Get a Free Month! On cPanel Web Hosting

Boost Your Site by 20X With High Performance LiteSpeed Servers