By artisanseo
Hi,
When I do to my new site (or try to login), I get this error- “Error establishing a database connection”
It was working yesterday.
Note: New to DigitalOcean
Thanks, Ken
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!
Hello, Thanks for reaching out to DigitalOcean!
Request you to refer to below link, which provides insights about how to fix the Database error:
Best Regards, Sri Charan
Hello, @artisanseo
Could you please check if the MySQL/MariaDB service is running on your droplet? You can do that using this command:
service mysql status
Also if you’re using the Managed MySQL Database product you can ensure that everything is okay with it as well. You can double check if the database connection string is correct and that the database details (username and password) are correct and you can access the database using them.
Let me know how it goes.
Regards, Alex
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.