Finally finished the separation and thought I’d list my steps here in case it works for someone else.
This was done with a multisite that had three different websites with one of them being a woocommerce site (main site). There wasn’t a lot of data as the sites were only two years old.
1. First I backed up everything!!
2. Next I did a fresh install of wordpress on my local server using Wamp.
3. Then I uploaded all the themes/plugins/upload folder from the backup into the fresh install and deactivated all plugins.
4. Next I opened up both database sql files inside notepad++ so I could look over everything. Each website has a different prefix for their corresponding tables like wp_2_options, wp_3_options etc. The main website will be just the standard wp_options prefix. At least this is how it was for me.
5. Then I copied the data from the 8 tables I listed in the post above into the new database overwriting the existing data in the same tables. I also copied over any other woocommerce table data from other woocommerce tables not listed as part of the 8 like wp_woocommerce_sessions, wp_woocommerce_order_itemmeta, wp_woocommerce_order_items etc.
6. The things to watch for here are making sure to replace the comma at the end of the data with a semi-colon and that (if applicable) the column counts match the value counts or you’ll get an sql error when you import the new database.
7. Next I copied over the data from the wp_options table to the new database again overwriting the existing data.
8. After that I copied over all the wp_users, wp_users_meta table data to the new database again making sure that the column counts match the value counts and commas and semicolons are in their respective places.
9. Next I went through all the plugin tables to copy over data that belongs to the individual website like formidable forms etc. Again each website will have its own prefix to let you know which is which (at least in my case).
10. After I was sure that I had copied over all pertinent data for the website I was separating I went through all the tables to make sure the commas and semi colons and column/values were correct.
11. Then I dropped my fresh installed database and imported the modified database for the separated website on my localhost (wamp). And of course I had a couple of errors relating to the comma’s and column/value counts which I went back and fixed.
12. Then I activated all plugins and did some tweaking/testing of the functionality of the website on my localhost (wamp) to confirm that everything worked without issues, making sure I was online also to update any plugins/themes that needed it since I began.
13. I deleted the live mulitsite installation/database and uploaded the single installation using ftp and importing the modified database using phpmyadmin. Yahoo no errors!
14. Next I gave the live website a thorough going over and purchased a product to confirm that everything still worked without issues. Voila finished. Other than starting the same process on the other two websites of course. ?? ??
This was a lot of work (2 full days) but the only way I could find to do what I wanted to do. I imagine that there is a plugin out there somewhere that does this for you but I couldn’t find it. There may also be a series of sql queries that you could do to lighten the workload but again I couldn’t find them.
Hopefully this will help someone else like me (limited skills) to separate a multisite installation if that is what your client wants. If I remember any steps that I forgot to mention here I’ll stop back and add them but I believe that was all my notes for the process.
-
This reply was modified 6 years, 1 month ago by nootkan.
-
This reply was modified 6 years, 1 month ago by nootkan.
-
This reply was modified 6 years, 1 month ago by nootkan.
-
This reply was modified 6 years, 1 month ago by nootkan.