內容簡介
Export 2 Multisite 可將您獨立的資料庫 SQL 匯出,以進行 WP 多站點安裝的匯入。它處理重複使用者(基於電子郵件),並將所有站點設置,包括小工具和選單都複製過來。您仍需要複製佈景主題、外掛和上傳檔案。
該外掛已經過最低限度的測試,但已成功用於幾個獨立站點的多站點遷移。
對於使用大量外掛,特別是具有自己的資料庫表的外掛,可能無法正常工作。
安裝
在多站點上建立新站點。
複製此獨立站點的外掛和佈景主題到多站點。
將此站點上的 wp-content/uploads/ 檔案複製到多站點上的 wp-content/uploads/sites//。
在多站點上備份資料庫。
提供多站點的站點 ID。這可以在網路管理員->站點上將鼠標懸停在新站點上以找到。
提供新網址。例如: //mysite.my-wp-multisite.com
提供新的檔案路徑(多站點安裝的檔案路徑)。
匯出資料庫備份。
將 SQL 匯入多站點安裝中。
重要提示: 匯出的 SQL 將刪除為您提供的站點 ID 創建的資料表。請只在新的空站點上執行此遷移。
請注意您可能需要檢查匯出的 SQL,以確定外掛的資料庫表是否已正確匯出。
網站管理員(使用者名稱和密碼)是您在創建新站點時創建的使用者,而不是此獨立站點的網站管理員。
此匯出外掛的主要功能靈感來自於此部落格文章
此外掛的程式碼是從WP Migrate DB外掛修改而來,但不應與其衝突。
外掛標籤
開發者團隊
原文外掛簡介
Export 2 Multisite exports your standalone database SQL for import into a WP multisite installation. It handles duplicate users (based on email) and will copy over all site settings including Widgets and Menus. You still need to copy the files for your themes, plugins and uploads.
This plugin has been minimally tested, but has been used to successfully migrate a handful of standalone sites to a multisite installation.
There is a good possibility it won’t work for sites that make use of a multitude of plugins – especially plugins that have their own database tables.
Installation
Create a new site on the Multisite.
Copy the plugins and themes from this standalone site to the Multisite.
Copy the files from wp-content/uploads/ on this site to wp-content/uploads/sites// on the multisite.
Backup the database on the Multisite.
Provide the Site ID of the Multisite. This can be found by hovering the mouse over the new site on Network Admin->Sites.
Provide the New URL. Example: //mysite.my-wp-multisite.com
Provide the New file path (The file path of the Multisite installation).
Export the database dump.
Import the SQL into your Multisite installation.
Important: The exported SQL will DROP the tables that were created for the Site ID you provided. So only perform this migration on new empty Sites.
Note that the you may need to review the exported SQL to ensure that plugin database tables have been exported correctly.
The site admin (username and password) is the user you created while creating the new Site, NOT the site admin of this standalone site.
The guts of this export plugin were inspired by this blog post
The code for this plugin has been modified from the WP Migrate DB plugin, but should not conflict with it in any way.
