090803 8:51:55 InnoDB: Error: unable to create temporary file; errno: 2
090803 8:51:55 [ERROR] Plugin 'InnoDB' init function returned error.
090803 8:51:55 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
090803 8:51:55 [ERROR] Unknown/unsupported table type: INNODB
解决原因:MySQL的config wizard向导生成my.ini漏掉一条配置tmpdir的目录
解决办法:在my.ini中增加一行
tmpdir="D:/Program Files/MySQL/MySQL Server 5.1/DataFiles/Data/"
(目录可以随意)
安装不能完成就直接把安装程序干掉,然后设置上面的就可以了!
由于是以前系统坏了,想把以前的数据库数据搬过来,就直接把以前的data文件全部复制过来了,发现
InnoDB: Error: log file .\ib_logfile0 is of different size 0 99614720 bytes
InnoDB: than specified in the .cnf file 0 536870912 bytes!
161031 10:44:35 [ERROR] Plugin 'InnoDB' init function returned error.
这是要根据99614720 值/1024/1024 看得出来的是什么值,这里是95
所以得在my.ini里设置innodb_log_file_size=95M!
再启动就没问题了,以前的所有表数据也全部过来了!