windows下重灌xampp並做mysql資料遷移的步驟
背景
因為windows系統升級,導致原來安裝的xampp的檔案目錄損壞,造成了xampp無法啟動,需要重新安裝xampp來解決伺服器重啟以及資料庫的轉移
轉移步驟
假設原來的xampp安裝目錄為D:\xampp,新安裝的目錄為F:\xampp
- 重新下載並安裝xampp,下載地址https://www.apachefriends.org... ,根據實際情況下載相應的xampp版本,我下載的是PHP5.6.40版本的
- 將D:\xampp\mysql\data目錄下的資料庫資料夾移動到新的安裝目錄的F:\xampp\mysql\data目錄下,每個資料庫都對應一個資料夾
- 將D:\xampp\mysql\data目錄下的ib_logfile0,ib_logfile,ibdata1三個檔案覆蓋新的安裝檔案下的對應檔案
採坑
開始時候我沒有執行上面的第三步導致,開啟資料一直報錯table doesnt exist in engine ,執行第三步就ok了!