wpvidZ

Learn WordPress With Video Tutorials

  • Blog
  • Browse
    • Backup & Restore
    • WordPress Localhost
    • WordPress Hosting
    • WordPress themes
    • Version Updates
    • Plugin Tips
    • Security
    • Tutorials
    • WordPress SEO
    • WP Miscellaneous
    • Sitemap
  • WP 5+ Tutorial
  • Search
wpvidZ Blog Tutorials “Error Establishing A Database Connection”-WordPress

Tutorials

“Error Establishing A Database Connection”-WordPress

Last updated on February 18, 2017
Posted on July 15, 2010

What to do if you have wordpress error message which is :”Error establishing a database connection”.

Yesterday, I was in the middle of checking my dashboard and when i refreshed my admin page, my screen was suddenly white and showing this database error message.

This has never happened to me before, and i was then, of course panic.


The error message looks like the following image:

The error message that appears on the blank page.

I started to backup my wordpress database from my phpMyAdmin, and start to do some google researches about it too. Luckily a few minutes later, my blog comes back online again.

  • Is my site loading fast? I use this shared hosting
  • Try my theme >

Here are some steps what i did when i got this database error:

1. I tried to be not panic, but of course i was. Can’t help it, i have lots of posts already, and do not want to loose anything. So i did a quick database backup before i could think of something else.

2. I was so sure that my database name, password, localhost were all correct. So i didn’t even touch my wp-config.php.

3. I tried to settle down, and wait for a few minutes, planned to contact my host, but i just have waited.

4. Finally after a few minutes later, my blog was back to normal again. I didn’t do anything, i have just waited.

Summary: If you have this problem, and you are sure you didn’t edit wp-config.php file, then i would just wait for a few minutes or hours (24 hours).   In my case above, imagine, if i changed something, it would mess up my blog instead of fixing. So i would recommend you wait until the next day, and if  it still happens, i would contact your webhost.

database error

Latest Posts

  • Twenty Nineteen Theme Full Tutorial – Creating a Website
  • Uninstall W3 Total Cache Plugin – Incredibly Easy!
  • Create WordPress Website 2018 on SiteGround Genesis
  • WordPress Noopener Noreferrer Rel Attribute Quick Fix
  • WordPress CDN Setup with MaxCDN and W3 Total Cache Plugin
  • Twenty Seventeen One Page Parallax Scrolling Website Style
  • How To Add Google Map in WordPress Contact Page
  • WordPress 4.7 Justify Text and Underline
  • Twenty Seventeen Footer “Proudly Powered By WordPress” Text
  • How To Add YouTube Subscribe Button To WordPress Website
← WordPress Fix “Parse Error Functions.php” Video Tutorial
→ Get Your Blog Indexed By Bing

Comments

  1. Binh says

    March 4, 2011 at 5:04 pm

    Hello KIMI,

    I come here because i’m looking for a solution for a real problem. Your case is very popular because that may only be cause of your blog not cached and so it overloaded the mySQL allowances.

    However currently I encounter this message for all my blogs and meo.vn is one case. I had to fix it by renaming the tables of the first blog one by one from wp_1_xxx to wp_xxx.

    I’m in hope of having a real solution as a php file or something. Hopefully one of your visitors know about it. Thanks in advance.

    • Kimi says

      March 4, 2011 at 6:43 pm

      Hi Binh,

      I have encoutered this many times, in my old free hosting, and once or twice with this blogs.

      But I guess it was caused by the host, because I did not change anything and a few minutes later it works again, I am glad I did not touch database though, because non-savvy person like me, can do big mistake with database!

      But in your case, I am sure learning something new, and I hope that will never happen to me or anyone else.

      Thanks for the explanation!

      Kimi.

  2. Somebody says

    July 31, 2011 at 1:25 am

    Hi Kimi, I am experiencing this at the moment, and going through the panic stage as nothing is loading. I will have to bite my lip and take your advice to do nothing for now. Hopefully it is something to do with the host, its late at night so I guess it could be some sort of maintenance.

Trackbacks

  1. Tweets that mention "Error establishing a database connection"-Wordpress -- Topsy.com says:
    July 16, 2010 at 8:20 am

    […] This post was mentioned on Twitter by Julian Perry, CHERYL FORREST. CHERYL FORREST said: "Error establishing a database connection"-Wordpress: About This Blog. Welcome .. http://bit.ly/dldZUk http://bit.ly/8GRCXK […]

Comment form on this post is closed after 60 days.

Search

Worth Reading

  • WordPress CDN setupWordPress CDN Setup with MaxCDN and W3 Total Cache Plugin
  • WordPress Google maps in contact pageHow To Add Google Map in WordPress Contact Page
  • The configuration of YouTube Subscribe button in Google Developers web pageHow To Add YouTube Subscribe Button To WordPress Website
  • Adding Social Media Links to WordPress Menu With CSS Classes
  • Unable to create directory wp-content/uploads in WordPress
  • Forward Twitter to Facebook Using App and Feedburner Tutorial
  • Kitchen Sink WordPress - Seem Simple But Important
  • Admin Pointers, Drag and Drop WordPress 3.3 Media Upload Features
  • How to sell ebook in a wordpress blog?
  • Check your site's performance using Google labs Page Speed

Backup & Restore

Backup WordPress Without a Plugin or FTP

Export WordPress Database using phpMyAdmin

BigDump Alternative – When BigDump Failed Importing Large WP Database

At This Place The Current Query Includes More Than 300 Dump Lines

View All..

Live Online Website

View All..

Offline Installation

How to Upload WordPress localhost to live server manually

Steps to Install WordPress on Windows 8 and WAMP 2.4

Install WordPress on Mavericks OS X 2014

Maximum upload file size in WAMP WordPress

View All..


WPvidz Hosting Image

  • About Me
  • Contact
  • Affiliate Disclosure
  • Privacy Policy
  • Term of Use

Copyright© 2023 wpvidz.com SG2021 | sitemap.xml


WPvidz.com is independent from WordPress.org but is proudly powered by WordPress & its block-based editor (Gutenberg)

WpvidZ.com uses cookies" to give you the best browsing experience possible. If you click "I Accept" below then you are consenting to this. For more information about your privacy settings on this website, please visit the Privacy Policy page. I Accept