
我有一個外部硬碟(格式為 NTFS),我從運行 Windows 7 的電腦複製了 MySQL 資料資料夾。
我現在需要從運行 Ubuntu Linux (14.04) 的電腦存取相同的資料。我在 Ubuntu Linux 機器上配置了 MySQL,以便它可以從外部硬碟上的相同資料目錄中讀取資料。但是,伺服器無法啟動,並給出以下錯誤訊息:
InnoDB: No valid checkpoint found.
InnoDB: If this error appears when you are creating an InnoDB database,
InnoDB: the problem may be that during an earlier attempt you managed
InnoDB: to create the InnoDB data files, but log file creation failed.
InnoDB: If that is the case, please refer to
InnoDB: http://dev.mysql.com/doc/refman/5.5/en/error-creating-innodb.html
150518 15:18:53 [ERROR] Plugin 'InnoDB' init function returned error.
150518 15:18:53 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
150518 15:18:53 [ERROR] Unknown/unsupported storage engine: InnoDB
150518 15:18:53 [ERROR] Aborting
在嘗試在另一台電腦上啟動伺服器之前,我確實停止了伺服器。
注意:我知道我可以在 Linux 機器上重新開始並執行 mysql 轉儲/導入,但由於各種特定於專案的原因,我理想情況下希望資料位於一個位置,可供 Windows 和 Linux 機器讀取。
答案1
答案2
我知道我的答案來得太晚了,但我也偶然發現了這一點。這是解決方案:將所有者更改為mysql資料目錄、其檔案及其所有子目錄的使用者和群組,例如:
chown -R mysql:mysql /var/lib/mysql