• Skip to primary navigation
  • Skip to main content

Thats Journal

  • Home
  • About
  • Digital Marketing
    • Affiliate Marketing
    • Branding
    • Content Marketing
    • Email Marketing
    • Marketing
    • Sales and Marketing
    • SEO
  • Social Media
  • Influencers
  • Resources
  • WordPress
    • WordPress Plugins
    • WordPress Themes
  • Sitemap
  • Contact Us
  • Show Search
Hide Search

Fix Error Establishing A Database Connection In WordPress

admin · Nov 17, 2014 · Leave a Comment

In this post I will discuss about Error establishing a database connection error in WordPress blog and steps on how to fix it. Although, this error can occur due to various reasons I will discuss two troubleshooting steps which have helped me to fix this error.

Error establishing a database connection in WordPress blog
Step-1: Fix the error by repairing database from cPanel: You can read one of my posts on how to repair database from cPanel. For me, sometimes this has fixed the Error establishing a database connection error. If this didn’t work for you continue to Step-2.

Step-2: Fix the error by restarting MySQL service: If you have access to Parallels Virtuozzo Power Panel, you can fix Error establishing a database connection error in WordPress blog by restarting the MySQL service. Usually, with a VPS you will get a Virtuozzo Power Panel.

Login to your Virtuozzo Power panel. Click on “System Services” under “Services”.

Click on System Services under Services in Virtuozzo Power panel

Check if MySQL service is stopped or running. For Example, here MySQL service is stopped. Now, click on MySQL service.

Click on MySQL service in Virtuozzo Power panel

Then, on the next page click on “Start Service” button.

Click on Start service in Virtuozzo Power panel

This will start the MySQL service again and you will see that its running.

MySQL service is running in Virtuozzo Power panel

Even if the MySQL service was running in the first place, you can go ahead and click on the button “Restart service” to restart the MySQL service.

Click on Restart service in Virtuozzo Power panel
This will fix the Error establishing a database connection error in your WordPress blog.

Step-3: If the error still persists, you can contact your web hosting support to fix the error.

Share this:

  • Click to share on Facebook (Opens in new window)
  • Click to share on Twitter (Opens in new window)
  • Click to share on LinkedIn (Opens in new window)
  • Click to share on Pinterest (Opens in new window)
  • More
  • Click to print (Opens in new window)
  • Click to share on Reddit (Opens in new window)
  • Click to share on Tumblr (Opens in new window)
  • Click to share on Pocket (Opens in new window)
  • Click to share on Telegram (Opens in new window)
  • Click to share on WhatsApp (Opens in new window)
  • Click to share on Skype (Opens in new window)

Related

Pro Blogging access, blog, connect, cpanel, establish, help, hostname, install, localhost, not loading, Parallels Virtuozzo, password, Power Panel, repair database, restart MySQL, server, service, start, support, System Services, troubleshooting, username, Web Hosting, website

About admin

Thanks for dropping by! This post was published by Thats Journal. Follow us on our social channels for current trends on Digital Marketing, Social Media Marketing and WordPress Plugins.

Subscribe via Email

Enter your email address to subscribe to Thats Journal and receive new posts by email.

Join 33,265 other subscribers

Categories

Join Our Community of 50,000+ Bloggers And Authors!

Reader Interactions

Leave a Reply Cancel reply

Copyright © 2021 Thats Journal