• I’ve screwed up royally with regard to my transition from one url to the next. That said, I’m still alive. I have a wordpress backup from several days ago and the only things I need out of it are posts, comments, pages…the rest I can put together. I imported the whole backup into my new database yesterday and it knocked it off line. Is there any way I can pull only the items I just mentioned and somehow get them into my new install? Thank you.

Viewing 10 replies - 1 through 10 (of 10 total)
  • What kind of backup do you have? MySQL backup or did you do an export from the WP Tools menu?

    Thread Starter chandlerwhite

    (@chandlerwhite)

    It’s an SQL.

    Simple enough then. In your SQL file, you want to look for this

    -- --------------------------------------------------------
    
    --
    -- Table structure for table 'wp_options'
    --
    
    CREATE TABLE IF NOT EXISTS 'wp_options' (

    Everytime there is a new “Table Structure for…” heading, this is the start of a new database table. Find the ones you want, and delete everything else. Don’t delete anything in between the “Table structure for…” heading of the table you want to keep, and the next “Table structure for…”. This means don’t delete matching section like below

    --
    -- Dumping data for table 'wp_options'
    --

    You should be good after that.

    Thread Starter chandlerwhite

    (@chandlerwhite)

    Excellent. I’ll give it a go right now. Thank You!

    Thread Starter chandlerwhite

    (@chandlerwhite)

    Well, I tried. Issue is tons of syntax errors interrupting the works. Think I’m done for.

    Thread Starter chandlerwhite

    (@chandlerwhite)

    Thing I don’t understand, though, is when I imported the whole works (that crashed my new install) it accepted the import just fine. Now that I’ve left just the comments and posts, I get the syntax prob. Hmmm.

    You have to make sure that the tables you want to import are either non-existent or empty, otherwise they will not import. I don’t know what syntax errors you’re getting, but I would start there, and see what happens.

    Thread Starter chandlerwhite

    (@chandlerwhite)

    Thanks, man. I’ll get after it. BTW, here’s the error message (one of many I’m sure). I understand your previous suggestion and will try it. Just wanted to see if the error message made any diff in strategy.

    #1064 – You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘Table: wp_posts

    CREATE TABLE wp_posts (
    ID bigint(20) unsigned NOT ‘ at line 1

    Yeah… what I told you isn’t going to fix that, most likely. You’re possibly missing a comma, or have an extra one somewhere around

    Table: wp_posts
    
    CREATE TABLE wp_posts (
    ID bigint(20) unsigned NOT

    at line 1

    Thread Starter chandlerwhite

    (@chandlerwhite)

    Thanks, though.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Using Portions of Backup???’ is closed to new replies.