Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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
add comment

3 Answers 3

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
add comment

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
add comment

Your Answer

 
discard

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.