• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer

Justyna Dorsz

  • Blog
  • Store
  • Contact
  • About

WordPress on DigitalOcean – Error establishing a database connection

Today this website wasn’t working for a few hours.

My website is built with WordPress and is hosted on DigitalOcean. They were doing server maintenance — usually, that does not cause any issues but this time it did.

When I tried to access my website, I got this error:

Wo
Error establishing a database connection

I found out that the issue might be that the MySQL server was turned of.

To fix that I logged in to my droplet web console and ran:

sudo netstat -plt

It showed me programs listening for connections. However, MySQL was not on the list:

WordPress - MySQL is not working

Since MySQL was not listed, it was not running. I needed to start MySQL:

sudo systemctl start mysql

To check if MySQL started I ran the netstat command again. And this time MySQL was on the list:

WordPress - MySQL is running

That fixed the issue for me.

Related

February 18, 2021 Tagged With: DigitalOcean, Error, WordPress

◄Previous
Next►

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

About Me

My name is Justyna. I am an artist and an indie game developer.
What am I doing now?

Let’s connect!
@JustynaDorsz

LINKS

Cat Book Newsletter
Fox Shiver – my designs!
TRUFFLEPIG – cats!
Our Games

  • Instagram
  • Pinterest
  • RSS
  • Twitter

My designs

AND MORE…

I rarely send something...

Popular posts

  • Can you make money on Threadless?
  • The Last Psychiatrist
  • reMarkable 2 Review
  • Unity Input System vs Rewired
  • Footprints with Visual Effect Graph in Unity
  • My most popular design ever
  • Why you don’t see your designs on Threadless
  • Roam Research – Templates
  • Etsy accepts fake DMCA counter notices
  • I hired a law firm

USEFUL

DMCA Template

Topics

  • Advice (34)
  • Art (13)
  • Artist Life (13)
  • Cats (65)
  • Copyright (15)
  • Design (89)
  • Dogs (9)
  • Games (12)
  • Law (11)
  • Mindset (28)
  • Miscellaneous (14)
  • Money (12)
  • Our book (14)
  • Personal (20)
  • Productivity (10)
  • reMarkable (11)
  • Stats (11)
  • Threadless (33)
  • Threadless Artist Shop (15)
  • Work in progress (12)

Footer

  • Instagram
  • Pinterest
  • RSS
  • Twitter

Newsletter

Justyna Dorsz · Copyright © 2012–2023 · Log in