[推薦]一個好用的資料庫還原外掛!!!!
發表於 : 2003-02-04 14:14
大家都了解,當資料庫檔案太大時,由phpMyAdmin還原可能會出問題!
而且,並非所有主機都有提供telnet或ssh等方式可用console mode來還原資料庫!
在此,和大家分享一個好用的script,這是由國外IBF論壇找到的!
首先,下載檔案,並將副檔名改為.php
http://myweb.hinet.net/home1/garychio/restore_dump.txt
或
http://home.pchome.com.tw/family/garych ... e_dump.txt
,並照您的設定修改檔案內容,如下
#######
# User configurable elements
#######
$host = 'localhost';
$database = 'phpBB';
$user = '填入帳號';
$pass = '填入密碼';
// Path to the file which contains the data you wish to restore
$datafile = '備份的檔案名稱.sql';
將備份好的檔案.sql及restor_dump.php上傳至主機,並在瀏覽器網址列輸入\r
http://XXX.YYY/restore_dump.php
如果一切無誤,可在瀏覽器看到還原進度,還原成功!
最後,將備份檔案刪除!
而且,並非所有主機都有提供telnet或ssh等方式可用console mode來還原資料庫!
在此,和大家分享一個好用的script,這是由國外IBF論壇找到的!
首先,下載檔案,並將副檔名改為.php
http://myweb.hinet.net/home1/garychio/restore_dump.txt
或
http://home.pchome.com.tw/family/garych ... e_dump.txt
,並照您的設定修改檔案內容,如下
#######
# User configurable elements
#######
$host = 'localhost';
$database = 'phpBB';
$user = '填入帳號';
$pass = '填入密碼';
// Path to the file which contains the data you wish to restore
$datafile = '備份的檔案名稱.sql';
將備份好的檔案.sql及restor_dump.php上傳至主機,並在瀏覽器網址列輸入\r
http://XXX.YYY/restore_dump.php
如果一切無誤,可在瀏覽器看到還原進度,還原成功!
最後,將備份檔案刪除!