Mysql添加索引导致超时
当使用ALTERTABLE向超过2000万行的表中添加索引时,我将在一段时间后从mysql获得相关信息。 我使用的是mysql 5.6,这是我得到的日志文件:Mysql添加索引导致超时,mysql,Mysql,当使用ALTERTABLE向超过2000万行的表中添加索引时,我将在一段时间后从mysql获得相关信息。 我使用的是mysql 5.6,这是我得到的日志文件: END OF INNODB MONITOR OUTPUT ============================ InnoDB: ###### Diagnostic info printed to the standard error stream InnoDB: Error: semaphore wait
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.
我通过更改cfg文件“my”来修复它。 我把inno db bufeer改为1500mb,现在一切都好了 希望它能帮助别人