Title: Error message
Last modified: July 23, 2020

---

# Error message

 *  Resolved [sina202](https://wordpress.org/support/users/sina202/)
 * (@sina202)
 * [5 years, 12 months ago](https://wordpress.org/support/topic/error-message-841/)
 * How can i fix this Error establishing a database connection

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

 *  [Aims Infosoft](https://wordpress.org/support/users/aimsinfosofts/)
 * (@aimsinfosofts)
 * [5 years, 12 months ago](https://wordpress.org/support/topic/error-message-841/#post-13160591)
 * Hello,
 * WordPress needs the following information for connecting to the database:
    1.  Database name
        Database username Database password Database server
 * This information is stored in your WordPress configuration file called wp-config.
   php.
 * Check Your WordPress Database Credentials in wp-config.php file
 * You need to contact your WordPress hosting company to confirm your database host
   information.
 * Repair WordPress Database
 * `define('WP_ALLOW_REPAIR', true);`
 * YOURSITE.com/wp-admin/maint/repair.php
 * Please let me know above solution working or not
 * Thanks
 *  Thread Starter [sina202](https://wordpress.org/support/users/sina202/)
 * (@sina202)
 * [5 years, 12 months ago](https://wordpress.org/support/topic/error-message-841/#post-13160679)
 * Thank you so much, followed all your steps and database repair it worked

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

The topic ‘Error message’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [sina202](https://wordpress.org/support/users/sina202/)
 * Last activity: [5 years, 12 months ago](https://wordpress.org/support/topic/error-message-841/#post-13160679)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
