WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've installed a network for the main domain and the sub.domain.com It works, but I do prefer to maintain in separate databases, how do I do this? Thanks

share|improve this question

If you're using WordPress MU, I'm affraid you must use the same database, is the way WPMU works. I think there are (or were) plugins to allow you to do that, but the WordPress developers must have designed the MU feature this way for a good reason...

share|improve this answer

There is a paid-for multidb script by WPMU Dev, it can handle from 16 up to 4096 databases for 100,000+ blogs on the same multisite installation. I currently have it setup with 16 so can't say how messy it will get as you scale up but it depends on your needs.

It works by overwriting some core DB settings in WP, so anything that uses the database with the proper wpdb class won't know the difference - this should be absolutely everything. If you need to tweak your database manually they also provide a tool to find out which database a particular site is stored in.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.