Title: Error establishing a database connection – AWS Lightsail Instance
Last modified: December 27, 2020

---

# Error establishing a database connection – AWS Lightsail Instance

 *  [puneettan336](https://wordpress.org/support/users/puneettan336/)
 * (@puneettan336)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/error-establishing-a-database-connection-aws-lightsail-instance/)
 * Hi, my website was running fine and suddenly it stopped working while I was working
   on the backend.
    I am seeing an error that says ‘Error establishing a database
   connection’ for the last two days.
 * My site is hosted on AWS Lightsail (Bitnami). I tried everything but nothing 
   has worked yet. I have been asking in Bitnami support forums too but haven’t 
   got a response.
 * I checked using the SSH and found out that ‘MySql could not start’. Everything
   else is okay.
    I also have enough space on my disk so that shouldn’t be a problem
   too.
 * I understand from my searches that this issue has a lot of occurrences and many
   people have been struggling with it. However, there are multiple reasons for 
   this error to appear and I am unable to pinpoint what is causing the error for
   me.
 * Can someone please help?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ferror-establishing-a-database-connection-aws-lightsail-instance%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Websites Seller](https://wordpress.org/support/users/websitesseller/)
 * (@websitesseller)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/error-establishing-a-database-connection-aws-lightsail-instance/#post-13836410)
 * It looks like you messed up with the db. If you have a backup of it, try to reinstall
   it through phpmyadmin. After that, make sure the credentials are the right ones.
 * Cheers!
 *  Thread Starter [puneettan336](https://wordpress.org/support/users/puneettan336/)
 * (@puneettan336)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/error-establishing-a-database-connection-aws-lightsail-instance/#post-13836744)
 * [@websitesseller](https://wordpress.org/support/users/websitesseller/) don’t 
   think AWS Lightsail has phpadmin since it runs on bitnami.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Error establishing a database connection – AWS Lightsail Instance’ is
closed to new replies.

## Tags

 * [AWS Lightsail](https://wordpress.org/support/topic-tag/aws-lightsail/)
 * [database connection error](https://wordpress.org/support/topic-tag/database-connection-error/)
 * [MySQL](https://wordpress.org/support/topic-tag/mysql/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [puneettan336](https://wordpress.org/support/users/puneettan336/)
 * Last activity: [5 years, 4 months ago](https://wordpress.org/support/topic/error-establishing-a-database-connection-aws-lightsail-instance/#post-13836744)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
