Title: Website showing database connection error
Last modified: October 2, 2023

---

# Website showing database connection error

 *  [vijayhd2023](https://wordpress.org/support/users/vijayhd2023/)
 * (@vijayhd2023)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/website-showing-database-connection-error/)
 * My WordPress website is hosted with AWS Lightsail instance and working normal
   but day by day it was going down and for last 2 days it is not working. 
   I have
   tried few step from AWS re:Post solutions but still not resolved.[https://imgur.com/a/KeAcHnd](https://imgur.com/a/KeAcHnd)
   Please Help me solve. Any help will be appreciated heartily.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fwebsite-showing-database-connection-error%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/website-showing-database-connection-error/#post-17094301)
 * Are you sure that you have the correct MySQL database username and password in
   the wp-config.php file?
 * Are you sure that you have typed the correct MySQL database hostname into the
   wp-config.php file?
 * If yes to both, then you’ll need to contact your hosting provider’s support to
   ask why your database server is offline.
 *  Thread Starter [vijayhd2023](https://wordpress.org/support/users/vijayhd2023/)
 * (@vijayhd2023)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/website-showing-database-connection-error/#post-17095889)
 * I think nothing has changed because I don’t know much about the coding. Actually,
   I have updated the theme and plugins and hope it should not change the file.
 * Please guide me to check the username and password so I can resolve the issue.
    -  This reply was modified 2 years, 8 months ago by [vijayhd2023](https://wordpress.org/support/users/vijayhd2023/).
 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/website-showing-database-connection-error/#post-17097062)
 * You would need to access the database via whatever is available on the server,
   like phpMyAdmin or command line itself to confirm that database’s username and
   password.
 * Then, make sure those match what you have in your site’s wp-config.php file.

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

The topic ‘Website showing database connection error’ is closed to new replies.

## Tags

 * [connection error](https://wordpress.org/support/topic-tag/connection-error/)
 * [database](https://wordpress.org/support/topic-tag/database/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [James Huff](https://wordpress.org/support/users/macmanx/)
 * Last activity: [2 years, 8 months ago](https://wordpress.org/support/topic/website-showing-database-connection-error/#post-17097062)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
