本文主要演示如何修复mysql损坏的表。
工具/原料
1
搭载Centos6系统的服务器1台
2
提前配置好MySQL数据库
方法/步骤
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,说明已经修复好了。
上一篇:佩戴的手表必须保养