WordPress.org

Ready to get started?Download WordPress

Forums

Share single database with all sites in a multisite (5 posts)

  1. mko0nji9
    Member
    Posted 4 years ago #

    Is it possible to share a single wordpress database between all sites on a multisite?

    We are building a music site that has both a national and a local focus. The national site will be the root domain and the local sites will be in subdirectories. We want to use subdirectories and not subdomains in order to keep the focus on the root domain name. Each site will have its own front page.

    I'll use the domain music.com as an example, although this is not the actual domain name...

    Main site:
    music.com [national content and best of local content]

    Sub-directory sites:
    music.com/newyork [local content and selected national content]
    music.com/boston [local content and selected national content]
    etc...

    It seems like it would be easiest to accomplish this by having all of the sites share a single database and then use tags to control which posts appear on which site. For example, posts tagged "Boston only" would only appear in music.com/boston.

    My understanding of multisites, however, is that each site must have its own separate database, which would prevent sharing between sites. Is that correct? Is there any way around that?

    If not, is there a way to install multiple wordpress installations in subdirectories off of a root domain? At least with GoDaddy it seems that you can only install WordPress for domains and subdomains, not subdirectories. Is that a GoDaddy limitation or WordPress limitation?

    Any advice is greatly appreciated. Hopefully I explained our needs clearly enough.

    Thanks!

  2. Is it possible to share a single wordpress database between all sites on a multisite?

    this is what it does by default. So no, this part:

    My understanding of multisites, however, is that each site must have its own separate database, which would prevent sharing between sites. Is that correct?

    is not correct.

    This bit:

    It seems like it would be easiest to accomplish this by having all of the sites share a single database and then use tags to control which posts appear on which site. For example, posts tagged "Boston only" would only appear in music.com/boston.

    is backwards. Each blog in the network is independently controlled. So, you'd go to the backend of each sub-blog, make your posts there, and then use this plugin - http://wordpress.org/extend/plugins/wordpress-mu-sitewide-tags/ - to pull all posts to the main blog.

    What you're ultimately looking for is pretty straightforward & easy and fairly standard.

  3. mko0nji9
    Member
    Posted 4 years ago #

    Sorry... I was very sloppy in my terminology.

    What I should have said is that it looks like each site must have its own "wp_posts" table within the database.

    I'd like all of my sites to share a single "wp_posts" table, single "wp_comments" table, etc.

    Is this possible with Multisites?

  4. What I should have said is that it looks like each site must have its own "wp_posts" table within the database.

    That is correct. wp_1_posts and wp_2_posts etc etc.

    I'd like all of my sites to share a single "wp_posts" table, single "wp_comments" table, etc.

    Is this possible with Multisites?

    Not at this time (unless someone has a massive plugin to do it).

    Why do you want to? You said this:

    My understanding of multisites, however, is that each site must have its own separate database, which would prevent sharing between sites.

    Are you trying to crosspost blog posts between multiple sites?

  5. I'd like all of my sites to share a single "wp_posts" table, single "wp_comments" table, etc.

    Then use a single install with multiple categories.

Topic Closed

This topic has been closed to new replies.

About this Topic