Report this

What is the reason for this report?

Wordpress Error - "Error Establishing Connection"

Posted on October 27, 2020

Hello,

I just launched a droplet of $5 for my new wordpress blog. i was customizing it and one error continuously appearing.

Website has no content but still it shows the following error

“Error Establishing Connection”

how to solve this?



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Its “Error Establishing Database Connection”

Hi Thanks for reply Dikshit

I tried to run few commands but it shows error

like when I run the command

sudo netstat -plt

it says

sudo: netstat: command not found

am i doing right?

The error itself is simply telling you it cannot connect to the assuming local mysql server?

You want to ensure the DB server is actually running, you can usually do this via SSH and simply type in mysqladmin -u root -p status, if its running then you should get a prompt, otherwise it will error out telling you the DB server is not running.

If it is running then you will want to check you WP-config to see what DB server / port it’s looking at. Ensure the username and password are working as well.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.