Home > Just the Video Tutorials, WP database > “Error Establishing a Database Connection” — How to Fix This WordPress Error

“Error Establishing a Database Connection” — How to Fix This WordPress Error

“Error Establishing a Database Connection” — How to Fix This WordPress Error: Part 1 of 2

“Error Establishing a Database Connection” — How to Fix This WordPress Error: Part 2 of 2

Get Noticed with a $7.99 .CO!
  1. May 17th, 2012 at 09:53 | #1

    See the video on this site about creating thousands of users in WordPress.

  2. June 20th, 2012 at 08:19 | #2

    Good videos. In the first video, at around 4:25 minutes, you mention that if you do not know your user account password, you should create a new username and add it to the database. Wouldn’t it be simpler if one simply resets the password of that user? After all the old password is already lost, so there is nothing to loose.

    Just questioning the reasoning behind it :)

  3. June 20th, 2012 at 08:58 | #3

    John: Yes, you could do that, but some people use the same user for multiple databases…if you reset the password then you could unknowingly be breaking something else…I prefer to just add a new user and leave the existing ones alone. If you know for sure that is the only place you are using that user, then resetting the password would work.

  4. Nathaniel
    July 15th, 2012 at 19:50 | #4

    Thanks!

  5. raz
    September 9th, 2012 at 18:18 | #5

    i was in very tension for this problem ,but your blog solve my problem,
    thanx.

  6. December 27th, 2012 at 18:57 | #6

    hey – thanks so much for posting this really helpful tutorial!

  7. January 14th, 2013 at 10:36 | #7

    YOU are the BEST! Thank you so much! I was lost until I saw this. Thank you so very much!

  8. Kim
    January 29th, 2013 at 19:13 | #8

    I’m getting this error, but only intermittently. (Enough to drive me out of my mind.) The host says their servers are running fine. The site loads slowly (offsite friends confirm this) and the WP dashboard is almost impossible to access. I’ve followed your videos (which are excellent) and the problem does not lie here. Any ideas?

  9. February 4th, 2013 at 10:51 | #9

    I thought this was a well explained guide for the exact problem I’m having. Sadly, it did not resolve the problem… No idea where to go from here.

  10. February 9th, 2013 at 09:45 | #10

    Thank you for this video! It saved me hours of troubleshooting. I didn’t know where I had to go to fix the connection to the database after I changed the password.

  11. April 8th, 2013 at 10:53 | #11

    Thanks for the video #2 on “Error Establishing a Database Connection,” specifically the part on changing database users. One of my sites suddenly defaulted back to the original wp settings with ZERO content and without any determined cause! I tried to restore the site, database, and a host of other things and after days of work, the support group said I should just rebuild the entire thing. Scary!

    I looked at MySQL database and it had the original content but was not populating it to the site. In looking for solutions online, I ran into your video. I sure wish it was the first thing I looked at! I used your steps to add a new user to the database, deleted the old, and VOILA everything is back.

    I am bookmarking your site and coming here for my next troubleshooting adventure!

  12. Sandra
    May 4th, 2013 at 14:49 | #12

    I just need to thank you for giving me the idea for a solution! It saved the hack out of my nerves :)
    In my case, I tried to rename the database, saw that it was showing an error and then I renamed it again to the old name, and got the error again. Somewhere in that process I lost user of the database. In wp-config it was all that it’s suppose to be.
    I just started to watch your video and it hit me. I went to C-panel and saw that my database had 0 users, and added the user that was suppose to be there.
    Thank you for posting!

  13. May 24th, 2013 at 20:29 | #13

    I’ve been spend 6 hours to figure it out, until I follow your instructions. Now, my problem fixed. Thank you so much my friend. You are the best….Thank you!

  14. Uppity
    July 23rd, 2013 at 15:00 | #14

    Thank you! Got my site up and running right away and didn’t have to wait for a godaddy rep. Thanks!!

  15. August 7th, 2013 at 23:45 | #15

    I used to be recommended this blog by my
    cousin. I’m not positive whether this put up is written through him as no one else recognize such exact about my trouble. You’re incredible!
    Thank you!

  16. J
    September 19th, 2013 at 16:15 | #16

    THANK YOU!!!!

  17. mallesh
    October 1st, 2013 at 11:14 | #17

    When move website to another server where is MYSQL version 5.5.31 there is an issue “”connection Error establishing a database connection “” otherwise WordPress website working fine on MYSQL 5.1.69 on testing server. Is there any mysql version issue ???

  18. S
    December 3rd, 2013 at 23:16 | #18

    I recently changed my password then received the database error…looking in my wp-config file confirmed an old password.
    Thank you for this tutorial!!! :-)

  19. January 15th, 2014 at 15:41 | #19

    THANK YOU! Thank you thank you thank you. I have been locked out of my blog for months now, and this fixed the problem. I just created a new user for the database, made the changes in wp-config, and BOOM. Website. Thank you so much.

  20. March 2nd, 2014 at 03:33 | #20

    Thank you so much, i watched your video and your steps actually worked !!!

  21. Dave
    April 1st, 2014 at 20:06 | #21

    Thank you so much for these videos. Very clear and precise. My new host seemed to be put out about fixing a few of the connections they brought over from the old host. I used these steps on four sites in about 20 minutes (a little slower than most and wanted to make sure I didn’t mess up). Thanks.

  22. May 17th, 2014 at 10:47 | #22

    Thank you for sharing
    some time ago I faced this problem.
    My website with the error message “Error Establishing a Database Connection”. However, there are some lami recovered. After some time, the error again.
    This incident happened a few times.

  23. Marcia
    September 13th, 2014 at 20:09 | #23

    Thank you for explaining a technical problem in language that is accessible to someone without quite enough technical knowledge to sort this out on my own. I very much appreciate your helpful and thorough explanation. I was able to resolve this problem on our web site because of your explanation of possible causes. I ended up having to create a new user with a new password for the MYSQL database access and that worked! Deep sigh of relief and I have updated our backup process and exported the site.

    I’m guessing the problem had to do with someone changing that password but don’t know how that might have happened??

  24. daim
    November 9th, 2014 at 20:46 | #24

    you are a wonderful man.

  25. khalid mehmood
    December 18th, 2015 at 13:15 | #25

    Great. Thanks. It helped

  26. January 15th, 2016 at 13:17 | #26

    Thank You very much for preparing this tutorial. This helped me a lot while I found this ERROR.
    Thank You very Much

  27. February 13th, 2016 at 20:26 | #27

    WOW! You saved the day! I have watched about 10-15 different videos on this but you explained just about every detail on getting this done the right way. I feel like an official server admin now. I had to migrate a site from one server to another and had two installs of WP on the server. What a nightmare. THANK YOU!

Comment pages
1 2 3 4 148
  1. No trackbacks yet.
*