Title: Error establishing a data connection
Last modified: August 30, 2016

---

# Error establishing a data connection

 *  [beth11](https://wordpress.org/support/users/beth11/)
 * (@beth11)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/error-establishing-a-data-connection/)
 * I reset my password in MySQL Database. After the reset, I couldn’t log in to 
   my blog anymore. It says, Error establishing database connection.” By the way,
   I have a special login url set in the AIOWPS plugin. I couldn’t be wrong with
   my special login slug because I have bookmarked it, plus I also have a copy of
   it in my password manager app. I tried deleting browser cache and cookies, also
   tried another browser, but still failed to login.
 * Please help!

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

 *  [chickchick](https://wordpress.org/support/users/chickchick/)
 * (@chickchick)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/error-establishing-a-data-connection/#post-6640557)
 * Did you update your wp-config.php file with the new password too?
 *  Thread Starter [beth11](https://wordpress.org/support/users/beth11/)
 * (@beth11)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/error-establishing-a-data-connection/#post-6640591)
 * No. Could you tell me how to update it, step by step please. Be patient with 
   me because I’m not that techie and this is my first time to have an issue with
   my blog
 *  [Vagelis](https://wordpress.org/support/users/eboxnet/)
 * (@eboxnet)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/error-establishing-a-data-connection/#post-6640592)
 * You can edit your wp-config.php via your hosts control panel.
    Locate file manager
   and click it select the desired domain name (if you have more than one hosted)
 * if you see the folders bellow then you are in the right folder:
 * wp-content
    wp-includes wp-admin
 * if not check if you see a public_html folder and double click it
 * locate the wp-config.php and right click on it,click edit and wait till the file
   open
 * find
    define(‘DB_PASSWORD’, ‘YOUR OLD PASSWORD WILL BE HERE’); and alter it to
   be define(‘DB_PASSWORD’, ‘WRITE YOUR NEW PASSWORD’); save the file and try to
   open your website.
 * if you are unsure or you cant follow the directions contact your host and ask
   them to do it for you.
 *  [garychild1953](https://wordpress.org/support/users/garychild1953/)
 * (@garychild1953)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/error-establishing-a-data-connection/#post-6640594)
 * I have set up a new Sub Domain and am unable to connect to the database – I have
   checked and checked that all the user, host and password etc details are correct–
   the only thing different is that my new database is MySql 5.5 – is this causing
   the issue – all MysQL 5.1 sites are working fine
 *  Thread Starter [beth11](https://wordpress.org/support/users/beth11/)
 * (@beth11)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/error-establishing-a-data-connection/#post-6640596)
 * Oh… my blog is up and running now. I changed the db password in wp-config.php.
   Thanks chickchick for the reply
 *  Thread Starter [beth11](https://wordpress.org/support/users/beth11/)
 * (@beth11)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/error-establishing-a-data-connection/#post-6640597)
 * Thanks garychild1953 & eboxnet for your time.

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

The topic ‘Error establishing a data connection’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 6 replies
 * 4 participants
 * Last reply from: [beth11](https://wordpress.org/support/users/beth11/)
 * Last activity: [10 years, 7 months ago](https://wordpress.org/support/topic/error-establishing-a-data-connection/#post-6640597)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
