Support » Installing WordPress » Error Establishing Connection To Old IP?

  • Hi, ok. So my old hosting screwed me so I’m moving my site over to a new hosting company. I have to do a fresh install because they lost all the information and I need to use the same domain with what I’m doing. I KNOW that I have the DB Username, Password and the DB itself in the wp-config file for the fresh install. But when I go to wp-admin/install.php I get this error:

    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 66.154.65.91. 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.

    The IP above is the OLD IP to this domain. Yes, I do have the name servers set to the correct hosting.

    What could this be?

    Thanks

Viewing 8 replies - 1 through 8 (of 8 total)
  • Since you changed your host you need to check with your host what you need to use for database connection as host as some use a url and most use localhost

    Thread Starter everlonglp

    (@everlonglp)

    The hosting company that I’m moving to only requires ‘localhost’.

    I have the correct DB username and password as well as the DB name but I keep getting the same error.

    What else could be bringing the old IP up?

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Pretty much JUST your wp-config.php, unless you have it hard coded into a plugin/function/theme.

    You could also search the database for the IP, just in case.

    Thread Starter everlonglp

    (@everlonglp)

    Well, this is an entirely new install. Same domain name, but new WP install so I have no idea why I’m getting the error.

    when you log in in host account if you using cpanel thate should be your ip address is it the same

    Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    I have the correct DB username and password as well as the DB name but I keep getting the same error.

    See, there’s your fundamental flaw. You say the data is correct, but the error message is basically telling you that the data is not correct.

    The error is pretty much self-explanatory. In your wp-config.php file, you have the wrong settings. It’s as simple as that. Either the username is wrong, the password is wrong, or the database server is wrong.

    There is no other possible error here. It can’t connect to the database, so something is wrong with the settings or with the database itself. Simple as that, really.

    Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    Alternatively, since you moved domain names, are you sure you’re connecting to the new server and not the old one? Go to a command prompt and ping your domain name. What IP do you get?

    I remember did you change the DNS where ever you registered the domain name as it may be still pointing to old server

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Error Establishing Connection To Old IP?’ is closed to new replies.