mfrbuaa

【问题说明】

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\这个文件夹不存在。须要手动创建之...就这样问题攻克了尴尬

   

分类:

技术点:

相关文章:

  • 2021-12-03
  • 2021-10-08
  • 2021-12-18
  • 2021-12-18
  • 2021-08-08
  • 2021-07-05
猜你喜欢
  • 2021-04-21
  • 2021-08-09
  • 2022-01-20
  • 2021-04-04
  • 2021-09-03
  • 2021-07-03
  • 2021-06-22
相关资源
相似解决方案