1.执行命令“mysql -uroot -p”输入密码并登陆数据库;2.执行命令“use ceshi;”和“check table student;”检测表是否损坏;3.如图示Status是OK,则不用修复,说明表是好的; 4.如果是Status是Error,说明表是损坏了,需要修复;5.执行命令“repair table student;”修复表; 6.再次执行命令“check table student;”检测表修复情况; 7.可以看到status是OK,说明已经修复好了。