今天上班後不知道為什麼,mysql一直無法啟動,折騰了半天於是決定重裝
我本地的伺服器用的是wamp , 重裝的時候, 要進行數據備份, 我使用的最簡單粗暴的備份方式, 就是直接進入到mysql的安裝目錄下, 把data拷貝一份就可以了.
然後卸載wamp後重裝,資料遷移就是把data貼到相同位置替換下就ok了
但是今天遷移完後,mysql怎麼也啟動不了,查看log,顯示各種錯誤
2014-11-13 13:40:29 5196 [Note] Plugin 'FEDERATED' is disabled.
2014-11-13 13:40: 29 5196 [Note] InnoDB: The InnoDB memory heap is disabled
2014-11-13 13:40:29 5196 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
Note] InnoDB: Compressed tables use zlib 1.2.3
2014-11-13 13:40:29 5196 [Note] InnoDB: Not using CPU crc32 instructions
2014-11-13 13:4005 to create temporary file; errno: 2
2014-11-13 13:40:29 5196 [ERROR] Plugin 'InnoDB' init function returned error.
2014-11-13 13:40:295] P ' registration as a STORAGE ENGINE failed.
2014-11-13 13:40:29 5196 [ERROR] Unknown/unsupported storage engine: InnoDB
2014-11-13 13:40:029各種資料後, 又有了粗獷的方式,刪除了data目錄下的除數據庫文件夾以及ibdata1之外的文件, 再重啟, ok了, 小綠圖標出來了,mysql正常啟動了。
並且,在遷移過程中,妹紙做了各種測試.