• Mysql Table is marked as crashed and should be repaired


    查看Mysql数据库日志:/var/log/mysqld.log,发现存在以下日志内容:

    [ERROR] [MY-013134] [Server] Table './TestDB/TestTable1' is marked as crashed and should be repaired

    解决方法:

    # mysql -uroot -p


    # use TestDB;


    # check table TestTable1;


    mysql> check table TestTable1;
    +---------------------------+-------+----------+-----------------------------------------------------------+
    | Table | Op | Msg_type | Msg_text |
    +---------------------------+-------+----------+-----------------------------------------------------------+
    | TestDB.TestTable1 | check | warning | Table is marked as crashed |
    | TestDB.TestTable1 | check | warning | 14 clients are using or haven't closed the table properly |
    | TestDB.TestTable1 | check | error | Record at pos: 278780 is not remove-marked |
    | TestDB.TestTable1 | check | error | record delete-link-chain corrupted |
    | TestDB.TestTable1 | check | error | Corrupt |
    +---------------------------+-------+----------+-----------------------------------------------------------+
    5 rows in set (0.01 sec)

    #repair table Test_Table;
    mysql> check table  Test_Table;
    +---------------------------+-------+----------+----------+
    | Table | Op | Msg_type | Msg_text |
    +---------------------------+-------+----------+----------+
    | TestDB.TestTable1 | check | status | OK |
    +---------------------------+-------+----------+----------+
    1 row in set (0.00 sec)

  • 相关阅读:
    Java架构师成长直通车百度云
    java架构师直通车百度云
    java架构师成长直通车
    初级Java程序员需要掌握哪些主流技术
    JAVA互联网架构师专题/分布式/高并发/微服务之咕泡学院学习笔记
    java架构师学习之路
    新手都能学懂的SpringBoot
    2020新版python最新就业班项目实战教程(完整)
    35个jQuery小技巧!
    web知识总结
  • 原文地址:https://www.cnblogs.com/rusking/p/15947487.html
Copyright © 2020-2023  润新知