MySql数据库Plugin 'FEDERATED' is disabled.错误解决方法
Log:
121012 11:35:03 Plugin 'FEDERATED' is disabled.
121012 11:35:03 InnoDB: Error: unable to create temporary file; errno: 2
121012 11:35:03 [ERROR] Plugin 'InnoDB' init function returned error.
121012 11:35:03 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
121012 11:35:03 [ERROR] Unknown/unsupported table type: INNODB
121012 11:35:03 [ERROR] Aborting
解决方案:
一、
1、在MY.INI文件中的 [mysqld] 中增加一行tmpdir="D:/MySQL/data/"修改后,还是启动不了或者能启动但关机后又出现同样问题,接着我做了第二步,重启正常。
2、删除DATA目录下除数据库文件夹外的其他文件,重启mysql,问题解决。(删除MySQL目录下的ib_logfile0和ib_logfile1两个文件)
二、mysql在查询表结构(比如desc abc)ERROR 1 (HY000): Can't create/write to file 'E:\mysql-5.2.3\data\-install\#sql_ 5c_0.MYI' (Errcode:2)
或者Can't create/write to file#sql6e80_1905f7_3.MYI'
java.sql.SQLException: Can't create/write to file'C:\DOCUME~1\138113~3\LOCALS~1\Temp\#sql6e80_1905f7_3.MYI'
在my.ini中添加:
[mysqld]
#指定临时文件目录
tmpdir="E:/Program Files/MySQL/MySQL Server 5.1/Temp/"