简体   繁体   中英

How do I break a huge WordPress multi-site database up into separate MySQL databases?

How do I break a huge WordPress multi-site database up into separate MySQL databases? I have 24 WordPress MU-or- multi-site sites, holding over 20K users in total. My Server says I must break them into smaller or separate databases But I am at a loss as to how this is accomplished ? I seem to remember somewhere in the original install a option setting asking if wp should use separate data bases True or False and it was set to false by default ? but Now I can't seem to find it?

To do this you'll have to have access to phpmyadmin or a friend who is comfortable with mysql. Also, make sure to back up your database before you begin.

If you have a look in the database you'll see that each table has a wp_(blog index number)_tablename. (ie wp_1_content...)

In a regular installation all you have is the wp_tablename.

What you want to do is export each set of tables per index (ie wp_1_content...) and rename the tables to only include wp_tablename (ie wp_content)

Also, don't forget to change the url values in the wp_options table. There may be some other mu specific settings that you'll need to change in the mother site.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM