Jump to content

Wordpress: Import blog posts / users from another database


pealo86

Recommended Posts

I am performing some maintenance on one of my websites by making the changes on a local copy of the website and testing it that way.

 

Before I set the changes live I will need to make sure that I don't overwrite any users that have registered on the live website over the last couple of weeks, along with any posts they have made.

 

I was thinking that the only tables I'd need to back up were:

 

    * wp_users

    * wp_usermeta

    * wp_postmeta

    * wp_posts

 

But after trying this, it just completely broke my template (note: I was sure to update any urls in the db so that they matched the location of my local installation), so I'm guessing I may need to import something else also.

 

I have tried Wordpress' built in feature of exporting / importing posts, but I ended up with lots of duplicate posts the first time. The second time I tried removing most of my posts and then importing them again, but then it only imported a tiny portion of my posts for some reason.

 

Therefore I have basically lost faith in Wordpress' own import / export capability and am thinking I best do it through MySQL, but am not sure where to go next.

 

Any advice would be great :D

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.