Title: Database connection error after migration
Last modified: November 30, 2023

---

# Database connection error after migration

 *  [lauratu](https://wordpress.org/support/users/lauratlovestotravel/)
 * (@lauratlovestotravel)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/database-connection-error-after-migration/)
 * Hello,
 * I migrated my website to another hosting service, but I get a database connection
   error when I try to access it. 
   I started with downloading the database and public_html
   folder from the old hosting service. Moved my domain to the new hosting party
   and created a new database with a fresh wordpress install. I then edited the 
   old wp-config file with the new data, and uploaded all the website data through
   Filezilla to the new database. I also accessed phpmyadmin through the new hosting
   party and uploaded the old database to the new database. I did not change my 
   domain name. What did I miss? And why do I still get the database connection 
   error?
 * I tried everything I could think of, and would really like your insights on this
   issue. Thank you in advance for any help you can give me.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fdatabase-connection-error-after-migration%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [Benedikt Ledl](https://wordpress.org/support/users/benniledl/)
 * (@benniledl)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/database-connection-error-after-migration/#post-17241586)
 * Hi, often the database hostname and the database name change during migration
   to another server. Please double check these two.
 *  Thread Starter [lauratu](https://wordpress.org/support/users/lauratlovestotravel/)
 * (@lauratlovestotravel)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/database-connection-error-after-migration/#post-17241594)
 * Hi, I changed them both to the new server data in the wp-config file.
 *  [Benedikt Ledl](https://wordpress.org/support/users/benniledl/)
 * (@benniledl)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/database-connection-error-after-migration/#post-17241603)
 * We need to get a good error message, please activate the WordPress Debug mode:
   [https://wordpress.org/documentation/article/debugging-in-wordpress/](https://wordpress.org/documentation/article/debugging-in-wordpress/)
 * With the error message we can figure out what is causing the problem. (Please
   post the error)
 *  Thread Starter [lauratu](https://wordpress.org/support/users/lauratlovestotravel/)
 * (@lauratlovestotravel)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/database-connection-error-after-migration/#post-17241622)
 * This is the error I get:
 * [30-Nov-2023 10:22:55 UTC] PHP Warning: mysqli_real_connect(): (HY000/1045): 
   Access denied for user ‘dbu3612293’@’jacob.swh.1u1.it’ (using password: YES) 
   in /mnt/web610/b1/25/520366925/htdocs/STRATO-apps/wordpress_02/Aurum/wp-includes/
   class-wpdb.php on line 2035
   [30-Nov-2023 10:22:55 UTC] PHP Warning: mysqli_real_connect():(
   HY000/1045): Access denied for user ‘dbu3612293’@’jacob.swh.1u1.it’ (using password:
   YES) in /mnt/web610/b1/25/520366925/htdocs/STRATO-apps/wordpress_02/Aurum/wp-
   includes/class-wpdb.php on line 2035
 *  [Benedikt Ledl](https://wordpress.org/support/users/benniledl/)
 * (@benniledl)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/database-connection-error-after-migration/#post-17241630)
 * There could be multiple reasons why this error occurs, it could be wrong credentials
   but it could also be that your webserver is not whitelisted on the database server.
   You should contact your hosting provider to solve this issue.
 *  Thread Starter [lauratu](https://wordpress.org/support/users/lauratlovestotravel/)
 * (@lauratlovestotravel)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/database-connection-error-after-migration/#post-17241753)
 * I contacted my hosting provider, but they basically said they can’t help me because
   I entered the right credentials in the wp-config file. Is there another way I
   can solve this?
 *  [mrtom414](https://wordpress.org/support/users/mrtom414/)
 * (@mrtom414)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/database-connection-error-after-migration/#post-17243133)
 * did you create the user in your database for dbu3612293 and check to make sure
   it the user has access to your database. tables.

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

The topic ‘Database connection error after migration’ is closed to new replies.

## Tags

 * [database connection error](https://wordpress.org/support/topic-tag/database-connection-error/)
 * [migration problem](https://wordpress.org/support/topic-tag/migration-problem/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 7 replies
 * 3 participants
 * Last reply from: [mrtom414](https://wordpress.org/support/users/mrtom414/)
 * Last activity: [2 years, 6 months ago](https://wordpress.org/support/topic/database-connection-error-after-migration/#post-17243133)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
