Hi, I'm setting up WPMu to work with different domains as explained in this thread. It's all working fine, but now I want to import the other blogs. I'd like to do this via SQL, so I can script the import.
I've been able to export a current blog, import it via SQL, and have it work. I can see it from the domain I want to see it from.
The problem I'm having, though, is that I cannot see it in the control panel. Is there a table somewhere that says what blogs the admin can see? I can't seem to find it.
Here's how I did it:
1) Export all wp_* tables in SQL from existing WP install, except wp_usermeta and wp_users.
2) Change all instances of 'wp_' in the sql to 'wp_<blog_id>_'.
3) Import SQL into WP_Mu DB.
4) Add record in wp_site for new site.
5) Duplicate entries in wp_sitemeta for new blog:
insert into wp_sitemeta (site_id, meta_key, meta_value) SELECT <site_id>, meta_key, meta_value FROM wp_sitemeta WHERE site_id = 1
6) Insert new entry in wp_blogs for new site.
7) Re-point the DNS.
That's everything I did in the DB, there were a few other things like moving themes and plugins, and I haven't gotten to migrating users or media content yet.