2014-02-07 73 views
2

当我启动wampmysqld服务它提供了以下错误: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

_“InnoDB:错误:无法创建临时文件”_ - 您在什么位置安装数据库?您的用户帐户是否有写入权限? – CBroe

+0

一些线索可能会有所帮助,例如您安装的WAMPServer(32或64位)版本,您正在使用的MySQL的Verison,OS(32或64位)。你只知道一些线索。 – RiggsFolly

回答

2

你在你的环境中TMP=集。

如果缺少它,有时会导致问题。

修复:

要么设置在您的环境

OR

在你的my.ini

tmpdir=c:/wamp/tmp 

或者您的choise的任何文件夹来保存MySQL的临时设置此文件。

+0

非常感谢@ RiggsFolly.I多年来一直面临这个问题。在我遇到您的解决方案之前,互联网上其他地方提到的所有解决方案都不适用于我。我尝试了您的建议,现在正在开展工作。 –