Title: Error while connecting to the database
Last modified: October 6, 2020

---

# Error while connecting to the database

 *  [ppeter12](https://wordpress.org/support/users/ppeter12/)
 * (@ppeter12)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/error-while-connecting-to-the-database/)
 * Hi!
 * the homepage is working but in the overview on wp-admin I see this, how could
   I fix this I try also to repair but did not work
 * thx
    Peter
 * Error while connecting to the database
    This means either the username or password
   in your wp-config.php file is not correct, or we cannot contact the database 
   server at dbxxxx-xxxxxxxxxxxxxxx.sql-pro .xxxxxx.net. It may mean that your database
   server has fallen.
 * Are you sure you are using the correct username and password?
    Are you sure you
   entered the correct hostname? Are you confirming that the database server is 
   running? If you are unsure about these terms, you should probably contact your
   web host. If you still need help, you can always visit the WordPress Support 
   Forums.

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

 *  [corrinarusso](https://wordpress.org/support/users/corrinarusso/)
 * (@corrinarusso)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/error-while-connecting-to-the-database/#post-13498490)
 * Have you already followed the instructions laid out in the error message?
 *  Thread Starter [ppeter12](https://wordpress.org/support/users/ppeter12/)
 * (@ppeter12)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/error-while-connecting-to-the-database/#post-13498532)
 * yes but everything is ok so this is the problem everything is ok but this message
   arrives so I do not know where to look
 * i have try also to
    wp-admin/maint/repair.php
 * any idea what I could to next?
 *  [corrinarusso](https://wordpress.org/support/users/corrinarusso/)
 * (@corrinarusso)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/error-while-connecting-to-the-database/#post-13498609)
 * > yes but everything is ok
 * But everything is not okay.
 * Talk to your host.
    Copy and paste the data in your wp-config.php file from here:
   [https://wordpress.org/support/article/editing-wp-config-php/#default-wp-config-sample-php](https://wordpress.org/support/article/editing-wp-config-php/#default-wp-config-sample-php)
   Send it to your host, and tell them that your website cannot connect. Ask them
   to check the settings, and if the user has GRANT ALL privileges on your database.

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

The topic ‘Error while connecting to the database’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [corrinarusso](https://wordpress.org/support/users/corrinarusso/)
 * Last activity: [5 years, 8 months ago](https://wordpress.org/support/topic/error-while-connecting-to-the-database/#post-13498609)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
