

| How to fix Error “Establishing a Database Connection error” for a wordpress site |
|
If you have a wordpress site and you’re seeing the: Error Establishing a Database Connection to fix the problem you’ll need to... 1.Go to your file manager in your Cpanel then find the file named (wp-config php) then click edit code. 2.Go to your Cpanel, then go to mySQL Databases its under (Databases) 3.Check to see if they’re correct! If they’re correct it’s either the user password or db host that’s wrong! 4.Now you need to make sure your database password is correct - if you don’t know your password create a new one by: 5.Now go back to the wp - config user file and change the USERNAME to your new username and then also change the DATABASE PASSWORD to the new password you just created. 6.Now see if your website is showing - if it still isn’t the problem is with the (local host) if your host is Godaddy, they don’t allow local host so you’ll need to contact them to find out what should be put there instead of local host. |