当我启动wampmysqld服务时,它会出现以下错误:
Windows could not start the wampmysqld service on Local Computer.
Error 1067:The process terminated unexpectedly.
和MySQL日志显示错误:
2014-02-07 12:42:36 5492 [Note] Plugin 'FEDERATED' is disabled.
2014-02-07 12:42:36 5492 [Note] InnoDB: The InnoDB memory heap is disabled
2014-02-07 12:42:36 5492 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2014-02-07 12:42:36 5492 [Note] InnoDB: Compressed tables use zlib 1.2.3
2014-02-07 12:42:36 5492 [Note] InnoDB: Not using CPU crc32 instructions
2014-02-07 12:42:36 174c InnoDB: Error: unable to create temporary file; errno: 2
2014-02-07 12:42:36 5492 [ERROR] Plugin 'InnoDB' init function returned error.
2014-02-07 12:42:36 5492 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
2014-02-07 12:42:36 5492 [ERROR] Unknown/unsupported storage engine: InnoDB
2014-02-07 12:42:36 5492 [ERROR] Aborting
答案 0 :(得分:2)
您的环境中是否设置了TMP=
?
如果缺少此功能,有时可能会导致问题。
修复:
要么在你的环境中设置
OR
在my.ini
中设置此项tmpdir=c:/wamp/tmp
或者你选择的任何文件夹来保存MySQL的临时文件。