What to change at mySQL database for Wordpress move?

Discussion in 'MySQL' started by nICEsHARE, Mar 6, 2008.

  1. #1
    I got a blog, which now want to move to another server. But when I import the database, and copy the whole content to a new server, that seems the topic point to the old domain.

    What operation should I do to make this right again.

    Thx
     
    nICEsHARE, Mar 6, 2008 IP
  2. shodan.nayak

    shodan.nayak Peon

    Messages:
    9
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Did u change the domain in Wordpress Option ?. Edit the Db try to find ur old domain name and replace it with your new domain name.
     
    shodan.nayak, Mar 6, 2008 IP
  3. nICEsHARE

    nICEsHARE Active Member

    Messages:
    280
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    55
    #3
    Yes, I did change to new url in WP option, but the hardest part is how to change in my sql? Plz instruct me.
     
    nICEsHARE, Mar 6, 2008 IP
  4. nICEsHARE

    nICEsHARE Active Member

    Messages:
    280
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    55
    #4
    any help plz
     
    nICEsHARE, Mar 7, 2008 IP
  5. psyberweb

    psyberweb Peon

    Messages:
    585
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #5
    if your using cpanel, you can go to phpmyadmin and look for the database your blog is using, go to the settings table and edit the fields you like. best of luck. :)
     
    psyberweb, Mar 17, 2008 IP
  6. nICEsHARE

    nICEsHARE Active Member

    Messages:
    280
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    55
    #6
    Any SQL script then to do a quick replace for old url?
    thx
     
    nICEsHARE, Mar 18, 2008 IP
  7. chapicha

    chapicha Peon

    Messages:
    235
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #7
    I think the old server and the new server "must be" same , becuase
    you back up old data and restore the old data to new server , so it should be same.

    are you change setting on "wp-config.php" ?
     
    chapicha, Mar 20, 2008 IP
  8. soad524

    soad524 Peon

    Messages:
    43
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    like chapicha said in the wp-config.php make shure you edited the mysql info and in the options tab in wp (or settings table) change the domain for your blog to your new url
     
    soad524, Mar 23, 2008 IP
  9. nICEsHARE

    nICEsHARE Active Member

    Messages:
    280
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    55
    #9
    Yes, I did. The problem is when you click to view the thread, it will bring you to the old link, which remains in the database I guess. Anyways, there's a solution is to redirect in .htaccess, but what to change in the database to effect this?
     
    nICEsHARE, Mar 24, 2008 IP
  10. ag3nt bi0s

    ag3nt bi0s Banned

    Messages:
    106
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #10
    have u changed the domain or the servers .......i m confused. .. plz mention it :-S
     
    ag3nt bi0s, Mar 24, 2008 IP
  11. nICEsHARE

    nICEsHARE Active Member

    Messages:
    280
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    55
    #11
    Both! Any suggestion?
     
    nICEsHARE, Mar 24, 2008 IP
  12. dadaas

    dadaas Well-Known Member

    Messages:
    1,298
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    160
    #12
    I think you have problem in uniqueurl in posts... your old database url is inside.

    What to do, simple thing:
    open database with notepade or any other good editor if your in linux gphpedit is best and then just search your old domain and replace with new new domain... gphpedit have option replace all so its handy if you have 10 000 replaces.
     
    dadaas, Mar 12, 2009 IP
  13. nICEsHARE

    nICEsHARE Active Member

    Messages:
    280
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    55
    #13
    I guess the url is relative not absolute.
     
    nICEsHARE, Mar 12, 2009 IP
  14. ExtremeData

    ExtremeData Well-Known Member

    Messages:
    450
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    125
    #14
    Go to PhpMyAdmin -> YourDB -> wp_options -> siteurl (under option_name )
    Change siteurl value to your new domain url.
    Do the same for home value (PhpMyAdmin -> YourDB -> wp_options -> home)
     
    ExtremeData, Mar 21, 2009 IP
  15. inter4522

    inter4522 Active Member

    Messages:
    477
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    80
    #15
    did this work for you. i am having the same problem.
     
    inter4522, May 4, 2009 IP
  16. nICEsHARE

    nICEsHARE Active Member

    Messages:
    280
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    55
    #16
    Yes, it did man.
     
    nICEsHARE, May 4, 2009 IP