2014-08-31 51 views
0

當向超過20m行的表添加使用alter table的索引時,我會在mysql後過一段時間。 我用mysql 5.6,這是我得到的日誌文件:Mysql添加索引導致超時

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. 

回答

0

我通過改變CFG文件「我的」固定它。 我把inno db bufeer改成了1500mb,現在一切都很好。

希望它能幫助別人。