• mysqldump表损坏问题



    遇到的问题:
    mysqldump: Error 1194: Table 'user' is marked as crashed and should be repaired when dumping table `user` at row: 1161435

    登陆到数据库:
    mysql> select count(*) from user;
    +----------+
    | count(*) |
    +----------+
    |  1840589 | 
    +----------+
    1 row in set (0.00 sec)
    mysql> repair table user;
    +--------------+--------+----------+------------------------------------------------+
    | Table        | Op     | Msg_type | Msg_text                                       |
    +--------------+--------+----------+------------------------------------------------+
    | txtotal.user | repair | warning  | Number of rows changed from 1840589 to 1161435 | 
    | txtotal.user | repair | status   | OK                                             | 
    +--------------+--------+----------+------------------------------------------------+
    2 rows in set (50.04 sec)
    mysql> select count(*) from user;        
    +----------+
    | count(*) |
    +----------+
    |  1161435 | 
    +----------+
    1 row in set (0.20 sec)
    mysql> check table  user;        
    +--------------+-------+----------+----------+
    | Table        | Op    | Msg_type | Msg_text |
    +--------------+-------+----------+----------+
    | txtotal.user | check | status   | OK       | 
    +--------------+-------+----------+----------+
    1 row in set (15.05 sec)

    数据表已经修复完成,只是记录从原来的1840589 条减少到了1161435 条,不是太清楚还有没有更好的方法去实现修复。


    本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u1/38871/showart_1996523.html

  • 相关阅读:
    Linux下静态库与动态库
    通过js操作样式(评分)
    javascript学习
    2017年6月1日学习
    javascript学习2
    javascript学习:闭包和prototype原型使用基础
    关于“System.Data.ProviderIncompatibleException”类型的异常
    Android性能优化之ViewStub
    Activity Threa创建Window和View分析
    软键盘触发后弹起底部布局文件方法
  • 原文地址:https://www.cnblogs.com/L-H-R-X-hehe/p/4084404.html
Copyright © 2020-2023  润新知