• Hello !
    I try to migrate my website from an URL to another.
    So I follow the steps in a tutorial : https://wpmarmite.com/migrer-wordpress-manuellement/

    Now when I go on my new URL i have part of my website (menu and header only) and I have this message :
    Erreur : SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Name or service not known

    I understand that I have problems with the connection with my database.. ??
    How can I fix this ?
    Thansk for help

Viewing 7 replies - 1 through 7 (of 7 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    check the value you have for DB_HOST in wp-config.php. Is it what your host says you should be using?

    Thread Starter zazzou

    (@zazzou)

    I think… I put an adresse that ends with “mysql.db”
    Not correct ?

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    No, it doesn’t seem like it. It should be something like “127.0.0.1”, “localhost”, or the address or name of the server on which the mysql server is running. Again, ask your host.

    Thread Starter zazzou

    (@zazzou)

    I hava asking HOST and it is correct.
    So the problem is not there…

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Clearly not, because your site is unable to interpret it. What is the exact content of that DB_HOST line?

    Thread Starter zazzou

    (@zazzou)

    Here the line DB_HOST :
    define(‘DB_HOST’, ‘xxxxxxxx.mysql.db’);

    I have another website and this is a similar adress in the line and it works…So i don’t understand…

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    The domain “mysql.db” is not registered. Contact your host.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘ERROR after migration’ is closed to new replies.