MySQL Daemon无法启动Linux

时间:2018-06-25 11:13:18

标签: mysql

尽管有一些可用的解决方案,但我在Google上搜索了很多,但是我尝试了所有解决方案,似乎我的问题略有不同。 有人可以帮我解决这个问题。

OS:OEL6.5 Linux MySQL 5.5

MySQL.log:
180625 12:03:50 [Note] Plugin 'FEDERATED' is disabled.
180625 12:03:50 InnoDB: The InnoDB memory heap is disabled
180625 12:03:50 InnoDB: Mutexes and rw_locks use GCC atomic builtins
180625 12:03:50 InnoDB: Compressed tables use zlib 1.2.3
180625 12:03:50 InnoDB: Initializing buffer pool, size = 15.0G
180625 12:03:52 InnoDB: Completed initialization of buffer pool
180625 12:03:52 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!
180625 12:03:52  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 2113 of name './items_table.ibd'
InnoDB: to the tablespace memory cache, but tablespace
InnoDB: 2113 of name './customer_table.ibd' already exists in the tablespace
InnoDB: memory cache!

1 个答案:

答案 0 :(得分:2)

重要: 在开始播放db文件之前,先进行转储(mysqldump -A> mydb.sql)。

请考虑以下选项之一:

  1. 从目录树中删除items_table.ibd并重新启动mysql将修复错误。

  2. 重新创建MySQL数据目录:https://dba.stackexchange.com/questions/103625/how-to-reinitialise-var-lib-mysql-files