【问题说明】
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\这个目录不存在,需要手动创建之...就这样问题解决了查看更多关于mysql服务启动报1607error - mysql数据库栏目 - 自学的详细内容...
声明:本文来自网络,不代表【好得很程序员自学网】立场,转载请注明出处:http://www.haodehen.cn/did5091