Error establishing a database connection wordpress mysql
You normally get this error once you change the password in your GoDaddy hosting account for your blog.
To resolve this database connection error in wordpress you need to modify the password in wp-config.php, you can modify the password in wp-config.php using filemanager in Godaddy or using Filezilla client
Look for below text in wp-config.php and replace the password with your new password of wordpress blog
/** MySQL database password */
define('DB_PASSWORD', 'password');
Hope this helps in resolving Error establishing a database connection wordpress mysql