wordpress mu and mysql

Discussion in 'WordPress' started by walkingbird, Nov 23, 2010.

  1. #1
    I am looking for an easy way to create the same categories with the same ids across all the blogs on a word-press multi site install.

    Is there an easy way to do this?

    I am not very good my mysql but i am sure there is some way to get it to do it.

    Any help would be greatly appreciated.

    I tried just updating the terms table and the categories didn't show up on the blogs.
     
    walkingbird, Nov 23, 2010 IP
  2. ChristineR

    ChristineR Peon

    Messages:
    69
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Do a search for a fairly new product called WP-Cloner
     
    ChristineR, Nov 23, 2010 IP
  3. walkingbird

    walkingbird Member

    Messages:
    290
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    30
    #3
    Yeah WP-cloner doesn't look like it will get the job done. I need to do this for 20 sites and they all need the same categories with ids and descriptions on them. I dont want to have to go install the plugin on 20 sites and then set the settings for each one.
     
    walkingbird, Nov 23, 2010 IP
  4. richrf

    richrf Active Member

    Messages:
    1,101
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    88
    #4
    I took a quick look at the database schema (structure) and it looks like there are four tables involved in the relationships:

    1) posts
    2) term_taxonomy
    3) term_relationships
    4) terms

    The posts table contains the blogs. It is related to categories (and other terms) by joining the post table with the term_relationships table and the term_taxonomy table. This is then joined with the terms table to pick up the name of the term.

    The technical term for this structure is "overloading" because Wordpress mixes all kinds of terms (e.g. tags, categories) in the same table. It is an awful design which causes all kinds of performance and maintainability issues and was clearly designed by inexperienced database designers who thought loading all the terms in one table would be cute. They should have just created separate tables for each term. It would have been very clean, easy to understand, and easy to maintain, and smaller tables with much better performance - just a few more tables, but who cares.

    Well, c'est la vie.

    Rich
     
    richrf, Nov 23, 2010 IP
  5. OnlineHelp321

    OnlineHelp321 Active Member

    Messages:
    469
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    91
    #5
    How many categories are there? You can get back to me for free help.
     
    OnlineHelp321, Nov 24, 2010 IP
  6. walkingbird

    walkingbird Member

    Messages:
    290
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    30
    #6
    There are 12 catagories
     
    walkingbird, Nov 24, 2010 IP
  7. OnlineHelp321

    OnlineHelp321 Active Member

    Messages:
    469
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    91
    #7
    Thats it. send me your wp-admin and cpanel details and I will do it for you.
     
    OnlineHelp321, Nov 24, 2010 IP
  8. hmansfield

    hmansfield Guest

    Messages:
    7,904
    Likes Received:
    298
    Best Answers:
    0
    Trophy Points:
    280
    #8
    hmansfield, Nov 24, 2010 IP