WordPress.org

Ready to get started?Download WordPress

Forums

new host, same domain (3 posts)

  1. chen
    Member
    Posted 7 years ago #

    hi,
    we are moving to a new host, and i've already done the steps given on this page: http://codex.wordpress.org/Moving_WordPress#Moving_WordPress_to_a_New_Server

    but still, i can't seem to make it work... it would always say "Error establishing a database connection", but everything is right - database, wp-config.php, and all the files.
    we are using the temporary address(IP) for the new host. Could this cause the problem...?

    thanks for all your help... have a nice day

  2. Jag Singh
    Member
    Posted 7 years ago #

    I'd say it's got something to do with the config.

    Re-check your wp-config database passwords, username, location (localhost, remotemysqlhost, etc). Have you given the user access to the database? It's always the simple stuff that gets us, every time!

    The temporary IP address shouldn't matter.

    Good luck,
    jag

  3. chen
    Member
    Posted 7 years ago #

    you were right, it got something to do with wp-config... we had to change the DBHOST. the reason MAYBE was that we are using a temporary address that's why we couldn't connect to the databese and so we had to change the "localhost" to the address of our database server ( a very smart/intelligent person i know figured it out! :) )

    thanks so much Jag. we really appreciate it.

Topic Closed

This topic has been closed to new replies.

About this Topic