Mysql 数据库崩溃,需要帮助恢复吗

Mysql 数据库崩溃,需要帮助恢复吗,mysql,crash,innodb,Mysql,Crash,Innodb,我尝试重新启动,但出现以下错误: 错误!找不到MySQL服务器PID文件! 正在启动MySQL。错误!服务器在不更新PID文件(/var/lib/mysql/www.mysitecom.PID)的情况下退出 看看日志。。请看一大堆: 140502 14:10:24 InnoDB: The InnoDB memory heap is disabled 140502 14:10:24 InnoDB: Mutexes and rw_locks use GCC atomic builtins 14050

我尝试重新启动,但出现以下错误:

错误!找不到MySQL服务器PID文件! 正在启动MySQL。错误!服务器在不更新PID文件(/var/lib/mysql/www.mysitecom.PID)的情况下退出

看看日志。。请看一大堆:

140502 14:10:24 InnoDB: The InnoDB memory heap is disabled
140502 14:10:24 InnoDB: Mutexes and rw_locks use GCC atomic builtins
140502 14:10:24 InnoDB: Compressed tables use zlib 1.2.3
140502 14:10:24 InnoDB: Using Linux native AIO
140502 14:10:24 InnoDB: Initializing buffer pool, size = 128.0M
140502 14:10:24 InnoDB: Completed initialization of buffer pool
140502 14:10:24 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!
140502 14:10:24  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 12 of name './roundcube/searches.ibd'
InnoDB: to the tablespace memory cache, but tablespace
InnoDB: 12 of name './d6nspw4f_dell/wp_users.ibd' already exists in the tablespace
InnoDB: memory cache!
通过向sql配置文件中添加
innodb\u force\u recovery=4
可以重新启动,但所有接触数据库的站点现在都已损坏,无法写入

当我尝试对所有表执行mysql转储时,会出现以下错误:

mysqldump: Got error: 1146: Table 'x3hmcpl_hmcpl.blocked_ips' doesn't exist when using LOCK TABLES

任何帮助都将不胜感激。我们这里没有数据库管理员,我一直在努力尽快修复它。

innodb\u force\u recovery=4
将innodb置于只读模式,它不应该修复损坏的innodb表空间

转储所有数据库(mysqldump-a>mydb.sql)并重新创建MySQL datadir。

检查此线程,它可能会对您有所帮助。