Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to solve the problem of quot;is marked as crashed and should be repaired" in big data

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

This article is about how to solve the "is marked as crashed and should be repaired" problem in big data. The editor thinks it is very practical, so I share it with you. I hope you can get something after reading this article. Let's take a look at it with the editor.

Cause of phenomenon exec failed:Table'. / xxx/xxx_Table' is marked as crashed and should be repaired

The specific reason is not very clear to me. After searching the information, there are several opinions as follows:

Update the table frequently (I don't think this is very reliable. After so many years of mysql, there is still some stability)

Server power outage,

Disk expansion

Kill-9

Solution

Step 1: back up a corrupted table or database

Step 2: use the mysqlcheck tool that comes with mysql and add the-- auto-repair option to fix it.

Mysqlcheck-u root-p password table_name-- auto-repair

In addition, mysqlcheck has the following features: for safety reasons, the following two methods are not recommended in a production environment

Mysqlcheck-a-o-r-p / / check optimization and repair all databases mysqlcheck-A-o-r database name-p / / repair the specified database

Meaning of the parameter:

-a = Analyse given tables. / / analyze the data sheet

-c = Check table for errors / / check for incorrect (corrupted) tables in the database

-o = Optimise table / / optimize the data sheet

-r = Can fix almost anything except unique keys that aren't unique / / repair the corrupted data table

-m =-medium-check

The above is how to solve the "is marked as crashed and should be repaired" problem in big data. The editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report