Mysql添加索引会导致超时

时间:2014-08-31 20:40:45

标签: mysql

当使用alter table添加到超过20m行的表时,我会在一段时间后从mysql中删除。 我正在使用mysql 5.6,这是我得到的日志文件:

  END OF INNODB MONITOR OUTPUT
    ============================
    InnoDB: ###### Diagnostic info printed to the standard error stream
    InnoDB: Error: semaphore wait has lasted > 600 seconds
    InnoDB: We intentionally crash the server, because it appears to be hung.
    2014-08-31 21:52:17 890  InnoDB: Assertion failure in thread 2192 in file srv0srv.cc line 1748
    InnoDB: We intentionally generate a memory trap.
    InnoDB: Submit a detailed bug report to http://bugs.mysql.com.
    InnoDB: If you get repeated assertion failures or crashes, even
    InnoDB: immediately after the mysqld startup, there may be
    InnoDB: corruption in the InnoDB tablespace. Please refer to
    InnoDB: http://dev.mysql.com/doc/refman/5.6/en/forcing-innodb-recovery.html
    InnoDB: about forcing recovery.

1 个答案:

答案 0 :(得分:0)

我通过更改cfg文件“my”来修复它。 我将inno db bufeer改为1500mb,现在到目前为止都很好。

希望它能帮助别人。