mysql 服务启动报1607 error

【问题说明】

mysql曾经还是好好的,突然就不行了...不知道是否使用了腾讯C盘搬家工具引起的...


*.err文件里日志例如以下:

2014-11-10 15:09:20 2070  InnoDB: Error: unable to create temporary file; errno: 2
2014-11-10 15:09:20 696 [ERROR] Plugin 'InnoDB' init function returned error.
2014-11-10 15:09:20 696 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
2014-11-10 15:09:20 696 [ERROR] Unknown/unsupported storage engine: INNODB
2014-11-10 15:09:20 696 [ERROR] Aborting

【暴力实验过程】

一開始以为default-storage-engine=INNODB,默认INNODB是不正确的,改成MyISAM。不正确

然后改回INNODB。然后调整各种innodb參数,innodb_buffer_pool_size等。不正确

然后又依照网上的说法。设置basedir...删除logfile...,不正确

后来卸载重装mysql,问题依然


【解决方式】

 Error: unable to create temporary file; errno: 2

看来是某暂时文件创建失败了...于是在[mysqld]节点下加入tempdir。例如以下

[mysqld]

# The next three options are mutually exclusive to SERVER_PORT below.
# skip-networking
# enable-named-pipe
# The Pipe the MySQL Server will use
# socket=mysql

#指定的暂时文件文件夹
tmpdir="D:\mysqldata\"
#skip-grant-tables
開始依然不正确...额...D:\mysqldata\这个文件夹不存在。须要手动创建之...就这样问题攻克了尴尬

   
posted @ 2016-01-03 21:22  mfrbuaa  阅读(852)  评论(0)    收藏  举报