我的服务器今天崩溃了,我认为是由于我们的一个 INNODB 表上的并发 truncate table 命令。服务器可以重新启动,但是在它启动后,每次我尝试发出 SQL 命令时,都会出现以下错误:
ERROR 2006 (HY000): MySQL server has gone away
Run Code Online (Sandbox Code Playgroud)
这是日志中发生的事情:
121206 01:11:12 mysqld restarted
121206 1:11:13 InnoDB: Started; log sequence number 275 559321759
InnoDB: !!! innodb_force_recovery is set to 1 !!!
121206 1:11:13 [Note] /usr/libexec/mysqld: ready for connections.
Version: '5.0.95-log' socket: '/var/lib/mysql/mysql.sock' port: 3306 Source distribution
InnoDB: Error: trying to load index PRIMARY for table
InnoDB: but the index tree has been freed!
121206 1:11:37 - mysqld got signal 11 ;
This could …
Run Code Online (Sandbox Code Playgroud)