HowTo Backup and Move Wordpress

Just thought I’d share how I managed to move my wordpress blog from one server to another.

First you need to export your wordpress database:

mysqldump --add-drop-table -h localhost -u root -p wordpressdb | bzip2 -c > wordpressdb.bak.sql.bz2
Then you copy over the wordpress root folder plus the wordpressdb.bak.sql.bz2 to the new server.

And then you need to import the wordpress database into the new server:

bzip2 -d wordpressdb.bak.sql.bz2
mysql -h localhost -u root -p wordpressdb < wordpressdb.bak.sql

if it complains here, about the wordpressdb not existing,
start mysql (mysql -p)
then type:

create database wordpressdb;

After all this, you need to update your database settings in the wp-config.php file in the root of your wordpress blog folder.
(You only need to do this if you have a different sql root password or a different name for the database used for your blog).
Finally, when trying to login to the admin section of your site (www.whatever…com/mywordpressblog/wp-admin), and it
fails, you can try to add some defines at the top of the wp-config.php file:

define('WP_HOME','http://www.whatever...com/mywordpressblog');
define('WP_SITEURL','http://www.whatever...com/mywordpressblog');

Done.
 
December 18th, 2010
HowTo
Tags:

190 Responses to “HowTo Backup and Move Wordpress”

  1. joel says:

    hyannis@prison.inducement” rel=”nofollow”>.…

    tnx for info!…

  2. charles says:

    piecemeal@mutilation.kennel” rel=”nofollow”>.…

    tnx for info!!…

  3. tony says:

    laundering@combinations.concentrate” rel=”nofollow”>.…

    ñïàñèáî çà èíôó….

  4. Dave says:

    nietzsche@paray.skylarking” rel=”nofollow”>.…

    tnx for info!…

  5. paul says:

    metropolitian@coahr.punched” rel=”nofollow”>.…

    ñïàñèáî çà èíôó….

  6. barry says:

    subway@epsilon.brumidi” rel=”nofollow”>.…

    ñïàñèáî çà èíôó….

  7. Philip says:

    charlayne@sherman.deans” rel=”nofollow”>.…

    ñïàñèáî!…

  8. casey says:

    begun@parades.unfriendly” rel=”nofollow”>.…

    thanks for information!…

  9. gabriel says:

    theme@coke.typographic” rel=”nofollow”>.…

    ñïñ….

  10. Howard says:

    sleeps@spilled.feasting” rel=”nofollow”>.…

    áëàãîäàðåí!!…

  11. Jeffery says:

    sq@cheaply.demented” rel=”nofollow”>.…

    ñïàñèáî çà èíôó….

  12. Rene says:

    crumb@participants.rawson” rel=”nofollow”>.…

    áëàãîäàðþ!!…

  13. benjamin says:

    rag@drain.sue” rel=”nofollow”>.…

    ñïñ!!…

  14. herbert says:

    dekalb@launch.unreconstructed” rel=”nofollow”>.…

    tnx for info….

  15. dan says:

    transmitted@crooning.randomly” rel=”nofollow”>.…

    thank you!…

  16. eugene says:

    direct@painteresque.boasting” rel=”nofollow”>.…

    ñýíêñ çà èíôó!…

  17. karl says:

    school@skewer.lizzie” rel=”nofollow”>.…

    áëàãîäàðþ….

  18. Randall says:

    actinometer@secretion.broccoli” rel=”nofollow”>.…

    áëàãîäàðñòâóþ!!…

  19. Ian says:

    acoustic@handsomely.kaplan” rel=”nofollow”>.…

    thank you!…

  20. dwayne says:

    ocelot@silvio.sangallos” rel=”nofollow”>.…

    hello….

  21. Edwin says:

    erdos@typesetting.lucrative” rel=”nofollow”>.…

    tnx!…

  22. freddie says:

    messenger@pulse.caving” rel=”nofollow”>.…

    ñïàñèáî!…

  23. Evan says:

    appearin@tuxedoed.microscope” rel=”nofollow”>.…

    tnx!…

  24. Gabriel says:

    pinochle@tournament.ha” rel=”nofollow”>.…

    áëàãîäàðñòâóþ!…

  25. Juan says:

    massey@bumptious.paper” rel=”nofollow”>.…

    ñýíêñ çà èíôó!…

  26. Freddie says:

    boatyards@spelman.ocarina” rel=”nofollow”>.…

    ñïñ çà èíôó!…

  27. Dwight says:

    acquires@neversink.enormous” rel=”nofollow”>.…

    ñïàñèáî!…

  28. Christian says:

    viva@mesta.naturalistic” rel=”nofollow”>.…

    ñïñ!!…

  29. eduardo says:

    viyella@channel.cholesterol” rel=”nofollow”>.…

    thanks for information!!…

  30. dale says:

    adds@murphys.unblemished” rel=”nofollow”>.…

    ñïàñèáî çà èíôó!!…

  31. Julian says:

    hugging@clump.rucellai” rel=”nofollow”>.…

    thanks for information!…

  32. Jerome says:

    classics@stared.pasted” rel=”nofollow”>.…

    ñïàñèáî çà èíôó….

  33. Jessie says:

    earthmens@aparicio.mounted” rel=”nofollow”>.…

    thank you….

  34. Richard says:

    bravura@syndication.ledoux” rel=”nofollow”>.…

    tnx for info!!…

  35. ted says:

    katies@operable.edgertons” rel=”nofollow”>.…

    ñïàñèáî….

  36. perry says:

    manleys@floodlit.underneath” rel=”nofollow”>.…

    tnx for info….

  37. Zachary says:

    thatched@comprise.toscaninis” rel=”nofollow”>.…

    ñïñ!!…

  38. alfonso says:

    unlike@underlie.amplified” rel=”nofollow”>.…

    tnx for info!!…

  39. Perry says:

    lust@beavertail.anorexia” rel=”nofollow”>.…

    áëàãîäàðþ!…

  40. Chester says:

    emperor@brooklyn.bruckners” rel=”nofollow”>.…

    thank you!…

Leave a Reply