TL;DR: Simply (re)starting the mysql simply solve the issue. Here’s the complete story:

I randomly checked this blog1 and found out that this blog could not connect to the database and displaying “error establishing database connect” message.  I googled “digitalocean wordpress error establishing database connect“, found out this thread, and performed the exact steps mentioned on the thread:

  1. Connect using ssh to the server
  2. Check mysql’s status
  3. (re)start the mysql

The site can be accessed now.


  1. Which is hosted on Digital Ocean 

One thought on “Fixing WordPress’ “error establishing a database connection” on Digital Ocean

  1. […] CSS3 Agile CSS3 Engine Link Invert Colors Using CSS Link Shape Blobbing in CSS Link Youtube: Styling and Animating Scalable Vector Graphics with CSS Link jQuery Animsition A simple and easy jQuery plugin for CSS animated page transitions Link Walkway.js An easy way to animate SVG images consisting of line and path elements Link pagePiling.js: Create an original scrolling site (IE8) Link screenfull.js A simple wrapper for cross-browser usage of the JavaScript Fullscreen API Link Reading Map of the Best Animation Libraries for JavaScript and CSS3 plus Performance Tips Link A curated list of Web Performance Optimization Link Wordpress Fixing WordPress’ “error establishing a database connection” on Digital Ocean Link […]

Share Your Thought