mysql服务突然起不来了(有个坑)
报错日志:
180803 11:37:22 [Note] Plugin 'FEDERATED' is disabled.
180803 11:37:22 InnoDB: The InnoDB memory heap is disabled
180803 11:37:22 InnoDB: Mutexes and rw_locks use Windows interlocked functions
180803 11:37:22 InnoDB: Compressed tables use zlib 1.2.3
180803 11:37:22 InnoDB: Initializing buffer pool, size = 200.0M
180803 11:37:22 InnoDB: Completed initialization of buffer pool
180803 11:37:22 InnoDB: highest supported file format is Barracuda.
InnoDB: The log sequence number in ibdata files does not match
InnoDB: the log sequence number in the ib_logfiles!
180803 11:37:22 InnoDB: Database was not shut down normally!
InnoDB: Starting crash recovery.
InnoDB: Reading tablespace information from the .ibd files...
InnoDB: Error: trying to add tablespace 1 of name '.\eeeee\sheet2.ibd'
InnoDB: to the tablespace memory cache, but tablespace
InnoDB: 1 of name '.\app_kinderpower_\sheet2.ibd' already exists in the tablespace
最后解决:
把innodb前的#号去掉了
下面的解释是复制过来的
一般来说,是由于,在my.cnf中关于INNODB的一些配置是被注释的,在没有更改的情况下,系统就使用了默认值,这样,当你把关于innodb的配置选项注释去掉的时候,就会出现这个报错!
解决办法可以更改配置文件,也可以删除现在这个日志,再启动mysql这样它会重新生成这两个日志文件。
或者也可以修改my.cnf配置文件 将INNODB部分的注释去掉
#支持 INNODB 引擎模式。修改为 default-storage-engine=INNODB 即可。
#如果 INNODB 模式如果不能启动,删除data目录下ib开头的日志文件重新启动。
然后我就把ib开头的文件全删了。。。。。
然后没想到那是另一个项目数据库文件。。。。
那个项目总是提示没有这个表,但是nav里还能看到这个表。。。。
点击一下就会发现不存在了。。。
让我去找tp的方法一个一个的找啊。。。。
我快被自己蠢哭了