Title: Mysql password issues
Last modified: August 31, 2016

---

# Mysql password issues

 *  Resolved [CallMeAndy](https://wordpress.org/support/users/callmeandy/)
 * (@callmeandy)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/mysql-password-issues/)
 * So I am using Hostgator, recently was hacked and fixing issues gradually, anyway
   I wanted to make sure the database was tight. Went onto my CPanel and changed
   the password associated the with the only user registered to have DB permissions(
   DB_PASSWORD), expecting to having to change wp-config thereafter, so the two 
   would be in synch!
 * However after the change I browsed to the site expecting it to fail and it didnt.
   I login to admin – no barrier!
 * Thought I would try remoting in with MySql Workbench – sure enough it didnt like
   the password after prompting for one, but expecting to get denied access to the
   database, inspite of being refused, it allowed access to the data. Whatsmore 
   it also allows seemingly full rights, or at least as regards editing data.
 * Ive changed again to make sure I didnt mug the process but sure enough the same
   results.
 * Its probably something so fundamental but what am I overlooking? Or is this not
   the problem I think it is?
 * Thanks
    Andy

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

 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/mysql-password-issues/#post-6978113)
 * Perhaps check with Hostgator, you might be changing it on the wrong user or the
   change just isn’t going through, because other wise it just doesn’t make sense.
   WordPress will use the password in wp-config.php, and if it doesn’t match, all
   you’ll see on your site is “error establishing database connection.”
 *  Thread Starter [CallMeAndy](https://wordpress.org/support/users/callmeandy/)
 * (@callmeandy)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/mysql-password-issues/#post-6978258)
 * Thanks James – I knew it wasn’t making sense that’s why I posted the question.
   Of course it was me being a dick and only pressing a Generate New Password button,
   without pressing the Set Password button thereafter.
 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/mysql-password-issues/#post-6978291)
 * You’re welcome!

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

The topic ‘Mysql password issues’ is closed to new replies.

## Tags

 * [db_password](https://wordpress.org/support/topic-tag/db_password/)
 * [hostgator](https://wordpress.org/support/topic-tag/hostgator/)
 * [MySQL](https://wordpress.org/support/topic-tag/mysql/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [James Huff](https://wordpress.org/support/users/macmanx/)
 * Last activity: [10 years, 3 months ago](https://wordpress.org/support/topic/mysql-password-issues/#post-6978291)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
