步驟如下:
1.備份資料庫。
2.複製全部的wiki 資料。包括skin、 extensions、 LocalSettings.php
3.re-create the database
在新的一台機器建立資料庫名稱,與建立一個 wiki 的使用者,有權限存取wiki 的資料夾。
註:你可以在 LocalSettings.php 查到當初設定的使用者名稱與密碼。$wgDBuser and $wgDBpassword two parameters.
4.import database
可以用 dump的方法,或 phpmyadmin 將資料複製。
5.Import wiki file
6.check the configuration file
See LocalSettings.php
$IP | Needs to be correct for the paths on the new server |
$wgScriptPath | Needs to be correct for the path on the new server |
$wgDBserver | Check the database server name is correct |
$wgDBname | This might have changed in a shared hosting environment |
$wgDBuser | This might have changed in a shared hosting environment |
$wgDBpassword | Check this is correct for the new user |
沒有留言:
張貼留言