简体   繁体   中英

MyISAM table keeps crashing. How to go about finding the cause or debugging it?

On one of the site's I manage, I have a table set to MYISAM, and it constantly crashes. Automatic repair fails every time, so I have to go in and run the REPAIR TABLE command. I've looked at possible solutions such as this one: MySQL table is marked as crashed and it looks likes the best way might be to change the table to InnoDB.

However, the table has a FULLTEXT index, and if I could remove it then it would be no problem, but the site is running on a framework (specifically Elgg), so I don't know what kind of damage or problems I may have later on, so that might not be a good option.

So for my question: How can I find the cause of the crash? The site is on a web host, and running on PHP.

It may due to large number of connections on the same table then allocated in the my.cnf file.

As MyISAM locks the table and all threads remain in waiting list.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM