windows mysql不能以innodb模式啟動 解決方案
阿新 • • 發佈:2018-12-11
phpstudy自帶的mysql,伺服器重啟後,就不能以innodb模式啟動。不知道為什麼,my.ini裡 錯誤日誌error_log,臨時檔案路徑 tempdir都沒有設定。設定好error_log後,報錯
181024 8:49:19 InnoDB: Mutexes and rw_locks use Windows interlocked functions
181024 8:49:19 InnoDB: Compressed tables use zlib 1.2.3
181024 8:49:19 InnoDB: Error: unable to create temporary file; errno: 2
181024 8:49:19 [ERROR] Plugin 'InnoDB' init function returned error.
181024 8:49:19 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
181024 8:49:19 [ERROR] Unknown/unsupported storage engine: INNODB
181024 8:49:19 [ERROR] Aborting
關鍵的問題是 InnoDB: Error: unable to create temporary file; errno: 2,不能創造臨時檔案。設定了tempdir="c:\temp\"也不行,折騰了好久,原來是要用雙斜槓,tempdir="c:\\temp\\"