Title: error connection to database
Last modified: January 9, 2025

---

# error connection to database

 *  [WordPressCytoServer](https://wordpress.org/support/users/jeraldweinstein/)
 * (@jeraldweinstein)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/error-connection-to-database-2/)
 * Hello,
 * I am hosting this site using server as Digital Ocean. I have been away from my
   site for awhile
 * and it is using 73% memory. I cannot access it . However, the database is running
   ok.
 * I have checked my MySQL client login credentials and they are still intact.
 * Because I cannot log in to my site I have also attempted to install wp-cli and
   have done so however I
 * cannot remember the password for a username.
 * I am using Ubuntu Linux terminal to ssh in to my site on my home computer to 
   administer
 * my self hosted website from the command line.
    -  This topic was modified 1 year, 5 months ago by [WordPressCytoServer](https://wordpress.org/support/users/jeraldweinstein/).
    -  This topic was modified 1 year, 5 months ago by [WordPressCytoServer](https://wordpress.org/support/users/jeraldweinstein/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ferror-connection-to-database-2%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Moderator [threadi](https://wordpress.org/support/users/threadi/)
 * (@threadi)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/error-connection-to-database-2/#post-18233594)
 * The message is pretty clear: the database connection could not be established.
   There can be 2 reasons for this:
    - The database access data (which is stored in the wp-config.php file) is no
      longer correct. In this case, you would have to contact your hoster’s support
      and request new access data and enter this in wp-config.php.
    - The database itself is not accessible. Only your hoster’s support can help
      you with this, as it is their services that are affected.

Viewing 1 replies (of 1 total)

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [threadi](https://wordpress.org/support/users/threadi/)
 * Last activity: [1 year, 5 months ago](https://wordpress.org/support/topic/error-connection-to-database-2/#post-18233594)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
