• lauratu

    (@lauratlovestotravel)


    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 to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • !Benni

    (@benniledl)

    Hi, often the database hostname and the database name change during migration to another server. Please double check these two.

    Thread Starter lauratu

    (@lauratlovestotravel)

    Hi, I changed them both to the new server data in the wp-config file.

    !Benni

    (@benniledl)

    We need to get a good error message, please activate the WordPress Debug mode: https://www.ads-software.com/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

    (@lauratlovestotravel)

    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

    !Benni

    (@benniledl)

    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

    (@lauratlovestotravel)

    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

    (@mrtom414)

    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.