WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] wordpress migration database (6 posts)

  1. claybaby
    Member
    Posted 1 year ago #

    I'm moving a wordpress site from it's hosted location to my local LAMP stack. I've looked at the wp-codex directions for "If you want your old blog to work." My question belies my little understanding of what is actually happening under the hood in wordpress, but here goes:

    I'm downloading the site files and database twice, once the original, once with the new URL filled in the Settings. Then uploading the site and database to the new server(or to the local server in my case). My question is this: in order to preserve the old site(hosted) why can't I just go back to Settings and reset the URL? ... maybe I just answered my own question...

    Anyhow, I'm asking because I'm still trying to understand how wordpress works specifically how it interacts with the database. It's still a bit of a black box to me.

    thanks

  2. David Choi
    Member
    Posted 1 year ago #

    My question is this: in order to preserve the old site(hosted) why can't I just go back to Settings and reset the URL?

    Because WP uses those values to load the files from the database table. But it can be set manually from wp-config.php or functions.php file

    http://codex.wordpress.org/Changing_The_Site_URL

  3. claybaby
    Member
    Posted 1 year ago #

    thanks for the help

  4. David Choi
    Member
    Posted 1 year ago #

    You are welcome!

  5. salmanbaig0312
    Member
    Posted 1 year ago #

    @self Hosted WP.com I'm really thankful to you as the same problem was with one of my clients blog [ link redacted ] but now its resolved! really Thankful to you.

  6. David Choi
    Member
    Posted 1 year ago #

    @salmanbaig0312 Wow, I am glad the tip was helpful, you've made my day! :)

Topic Closed

This topic has been closed to new replies.

About this Topic