mysql提示:Table ‘xxx’ is marked as crashed and should be repaired
发布:smiling 来源: PHP粉丝网 添加日期:2014-10-08 13:55:35 浏览: 评论:0
有不少朋友可能会碰到mysql提示:Table ‘xxx’ is marked as crashed and should be repaired错误,特别是win系统使用mysql数据库时,突然掉电或关机情况就会出现这类提示.
在我遇到的一台lamp服务器突然宕机后,打开网站出现:Table ‘xxx’ is marked as crashed and should be repaired.
可以直接用mysql命令myisamchk 进行修复,Mysql提示tblName表格已损坏,需要修复,解决方法,进入到对应的数据库目录,代码如下:
cd /var/lib/mysql/dbname //phpfensi.com
使用myisamchk修复,代码如下:
shell> myisamchk -r tableName
dbname为你的数据库名,tablename为你损坏的表名.
方法二:如果不知道在命令模式下操作我们可以,利用phpmyadmin登录进入后,然后管理数据库找到点击修复表即可解决.
Tags: crashed should be repaired
相关文章
- ·is marked as crashed and last (automatic?) repair解决办法(2014-10-02)
- ·MYSQL is marked as crashed and should be repaired解决办法(2014-10-12)
- ·fail1Table “.\xxx\xxx” is marked as crashed and should be repaired(2014-10-14)
- ·Mysql错误Operand should contain * column解决办法(2015-04-17)
- ·解决Navicat cannot proceed because system tables办法(2014-09-24)
- ·mysql中IN,OR,BETWEEN性能比较(2014-10-09)
- ·Host ‘XXXXXX’ is blocked because of many connection errors(2014-10-13)
- ·mysql中文提示Incorrect string value: xB1xB1xBExA9(2014-10-13)
- ·sql between 条件语句用法(2014-10-15)
- ·Hibernate中MySQL的中文编码解决办法(2014-10-15)
- ·MySQL rownumber SQL生成自增长序号(2014-10-17)
- ·MYSQL压力测试工具sysbench安装测试详解(2015-04-17)
- ·Mac OS X 上 MySQL 提示 “MySQLWorkbench quit unexpectly.”解决办法(2015-04-17)
- ·Navicat 导出mysql数据库的时候出现 “Cannot proceed because system(2015-04-18)
推荐文章
热门文章
最新评论文章
- 写给考虑创业的年轻程序员(10)
- PHP新手上路(一)(7)
- 惹恼程序员的十件事(5)
- PHP邮件发送例子,已测试成功(5)
- 致初学者:PHP比ASP优秀的七个理由(4)
- PHP会被淘汰吗?(4)
- PHP新手上路(四)(4)
- 如何去学习PHP?(2)
- 简单入门级php分页代码(2)
- php中邮箱email 电话等格式的验证(2)