It may not be worth the trouble but this thread interests me. I'm new to WP MU and would like to consolidate my wp mu installs in a single instance. So, since I have a very fresh install, the post from JTE about a month ago interests me.
to change wp_ to xxxx_:
stop webserver, backup db:)
UPDATE wp_usermeta SET meta_key=(REPLACE(meta_key,"wp_","xxxx_"));
for each wp_n_options // where n is a number
UPDATE wp_n_options SET option_name="xxxx_n_user_roles" WHERE option_name="wp_n_user_roles";
for each table
RENAME TABLE wp_foo TO xxxx_foo;
edit $table_prefix in wp-config.php
I've been "dusting off" my SQL skills lately, it seems. I get most of this but want to make sure I understand something.
The installation created several tables prefixed "wp_1_xxx" and since this is a completely fresh installation, am I supposed to perform this operation:
for each wp_n_options // where n is a number
UPDATE wp_n_options SET option_name="xxxx_n_user_roles" WHERE option_name="wp_n_user_roles";
on each table prefixed "wp_1_xxx" or would this operation:
RENAME TABLE wp_foo TO xxxx_foo;
do the trick?
Another way to ask the same silly question is ... does this operation:
for each wp_n_options // where n is a number
UPDATE wp_n_options SET option_name="xxxx_n_user_roles" WHERE option_name="wp_n_user_roles";
only apply to wp_1_options table?
I have one user in the database at this time, one category, no posts, no comments, no pages, and two blogroll links.
I sure wish the install worked like a single wordpress install. Assigning a table prefix is written right into the wp-config.file.
~sigh~
Marj Wyatt aka Virtually Marj