MySQL常用问题解决方法

Q:

# table 损坏
Table 'table_name' is marked as crashed and should be repaired

A:

恢复数据表的索引:myisamchk -c -r ../data/tablename/posts.MYI
-----------------------------------------------------
说明:
  a).代码仅供学习交流
  b).本文根据自身经验及网络总结所作,如有错误,谢谢指教
  c).转载请注明出处。
-----------------------------------------------------
原文地址:https://www.cnblogs.com/xqbumu/p/5333620.html