Title: Error stablishing a database connection
Last modified: June 16, 2020

---

# Error stablishing a database connection

 *  [yohapadrino](https://wordpress.org/support/users/yohapadrino/)
 * (@yohapadrino)
 * [5 years, 12 months ago](https://wordpress.org/support/topic/error-stablishing-a-database-connection/)
 * Hello everyone. I don’t know what i’m doing wrong. I have created new databases
   and manually editing the wp-config file to match the credentials of the recently
   created database and when i visit the website address it lead me to the “config
   setup” again to create a wp-config file again (even whether already i ‘ve created
   it!). So i fill the form boxes with the same credentials of the created database
   but this doesn’t work neither, i’m still getting the error above. Can someone
   helpme please?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ferror-stablishing-a-database-connection%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [Dani Llewellyn](https://wordpress.org/support/users/diddledani/)
 * (@diddledani)
 * [5 years, 12 months ago](https://wordpress.org/support/topic/error-stablishing-a-database-connection/#post-12994332)
 * What permissions did you give to the userid for your database? I believe the 
   minimum required to run the install are select, insert, update, delete, and create.
   An example `GRANT` statement is below:
 *     ```
       GRANT select, insert, update, delete, create ON dbname.* TO userid_here@localhost
       ```
   
 *  [peterv74](https://wordpress.org/support/users/peterv74/)
 * (@peterv74)
 * [5 years, 12 months ago](https://wordpress.org/support/topic/error-stablishing-a-database-connection/#post-12995872)
 * Hello
 * I notice that your website is hosted at 000webhost.
    They say at their page “
   There is currently an issue affecting many users with MySQL databases, which 
   is also preventing users from installing WordPress. The issue is being worked
   on, so please refrain from creating topics about the issue.” at this [link](https://www.000webhost.com/forum/t/how-to-connect-to-database-using-php/42093):
   [https://www.000webhost.com/forum/t/how-to-connect-to-database-using-php/42093](https://www.000webhost.com/forum/t/how-to-connect-to-database-using-php/42093)
 * They have a problem setting up the Database Users and or passwords.
    If you create
   a new Database at their site, and try to enter using their manage button by selecting
   PHPadmin, using the Database user and password, you will get an error “mysqli_real_connect():(
   HY000/1045): ProxySQL Error: Access denied for user ‘youruserID_yourDBuser’@’
   2a02:4780:bad:c0de::19’ (using password: YES)”
 * The 000webhost website users are unable to install WordPress in any way at this
   time.
 * Your WordPress set up at their site will work as soon as they fix their issue.
 * I hope this can be of use to you.
 * Best regards.
 *  [BrillMindz Technologies](https://wordpress.org/support/users/brillmindindia/)
 * (@brillmindindia)
 * [5 years, 12 months ago](https://wordpress.org/support/topic/error-stablishing-a-database-connection/#post-12998287)
 * Step 1: Get In Touch With Your Web Host Provider
    Step 2: Check If Your Plugin
   or Theme Files Haven’t Been Corrupted Step 3: Check If Your Database Hasn’t Been
   Corrupted Step 4: Check Your Database Connection Credentials Step 5: Restore 
   The Default WordPress Files While there isn’t a 100% fail-proof way to protect
   your site against any error establishing a database connection, there are two
   main elements that you should have in your insurance puzzle to be at least 90%
   safe: 1.Quality hosting. 2.Have backups [https://www.brillmindz.com/mobile-app-development-company-in-india/](https://www.brillmindz.com/mobile-app-development-company-in-india/)

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

The topic ‘Error stablishing a database connection’ is closed to new replies.

## Tags

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

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 3 replies
 * 4 participants
 * Last reply from: [BrillMindz Technologies](https://wordpress.org/support/users/brillmindindia/)
 * Last activity: [5 years, 12 months ago](https://wordpress.org/support/topic/error-stablishing-a-database-connection/#post-12998287)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
