Title: Database/Password Errors
Last modified: August 20, 2016

---

# Database/Password Errors

 *  [cruzinpa](https://wordpress.org/support/users/cruzinpa/)
 * (@cruzinpa)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/databasepassword-errors/)
 * So, I’ve spent the last several days working to remove Malware from my site. 
   All of the sudden I tried to login into wp-admin page and it said my password
   was invalid. I looked into the wp-config.php file and it was correct. I changed
   my password through wordpress.org and tried to put that into the wp-config.php
   file and still get this same error:
 * “Warning: mysql_connect() [function.mysql-connect]: Access denied for user ‘cruzinpa’@’localhost’(
   using password: YES) in /home/cruzinpa/public_html/wp-includes/wp-db.php on line
   1038
 * Error establishing a database connection
    This either means that the username
   and password information in your wp-config.php file is incorrect or we can’t 
   contact the database server at localhost. This could mean your host’s database
   server is down.
 * Are you sure you have the correct username and password?
    Are you sure that you
   have typed the correct hostname? Are you sure that the database server is running?
   If you’re unsure what these terms mean you should probably contact your host.
   If you still need help you can always visit the WordPress Support Forums.”
 * I’ve also looked at the wp-db.php file as the error indicates and see nothing
   wrong on line 1038.
 * Any thoughts on how I can get logged back into WordPress. I am thinking of just
   rebuilding the site to delete all of the malicious code. It is becoming a nightmare!

The topic ‘Database/Password Errors’ is closed to new replies.

## Tags

 * [database](https://wordpress.org/support/topic-tag/database/)
 * [Database Error](https://wordpress.org/support/topic-tag/database-error/)
 * [password](https://wordpress.org/support/topic-tag/password/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [cruzinpa](https://wordpress.org/support/users/cruzinpa/)
 * Last activity: [13 years, 9 months ago](https://wordpress.org/support/topic/databasepassword-errors/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
