from: AL8
Forum http://www.alan888.com/Discuz/viewthread.php?tid=35734
由於一些大資料庫超出了 php 內上傳的限制而導致不能匯入, 使用下 php 檔便會自行代為分段匯入
使用辦法 (此測試是使用 phpmyadmin
備份的數據) :
1. 先下載 bigdump.zip 解壓後放在
discuz 根目錄上
下載 BigDump ver. 0.21b (beta)
參考網址
http://www.ozerov.de/bigdump.php
2. 將數據檔案 (後序為 sql 的備份檔案) 上傳到 discuz 根目錄上
3. 用記事本打開 bigdump.php, 找及填上下列內容
引用:
$db_server = ""; ←填上 config.php 內的 $dbhost 內容, 一般為 "localhost"
$db_name = ""; ←填上 config.php 內的 $dbname 內容
$db_username = ""; ←填上 config.php 內的 $dbuser 內容
$db_password = ""; ←填上 config.php 內的 $dbpw 內容
$filename = ""; ←填上已上載的數據檔案名稱
4. 執行 bigdump.php (即在網址欄輸入 http://網址/bigdump.php)
便會顯示如下
Start Import from 數據檔案 into 資料庫名稱 at localhost
按
Start Import 便開始進行匯入及自動完成, 請耐心等候
5. 完成後便會顯示如下
引用:
Congratulations: End of file reached, assuming OK
Thank you for using! Please rate Bigdump at Hotscripts.com
6. 刪除 bigdump.php 及數據檔案
完成