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 damage of MySQL Database Table

2025-03-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)05/31 Report--

This article shows you how to solve the damage of MySQL database table, the content is concise and easy to understand, it will definitely brighten your eyes. I hope you can get something through the detailed introduction of this article.

Solution to damage of MySQL meter

Process processing:

1. Log in to the unified information platform in the morning and find an exception in IMU service.

2. Check the related processes and find that the web application service has disappeared.

3. Inform the mainframe maintenance personnel to ask them to check the operation of the server and find that the server has been restarted on July 8.

4. After checking the database and the application system log, it is found that the application prints the following error messages frequently:

/ gc_tech/tab_staff is marked as crashed and should be repaired

5. Through the analysis of the log, it is found that the IMU database table tab_staff is damaged due to the server restart.

6. Restart mysql to get the current database storage path and locate the myi file corresponding to the table: tab_staff.MYI

The path obtained after restart is as follows:

/ usr/local/mysql/data/gc_tech/tab_staff.MYI

5. Switch to the mysql program deployment path with the root account:

The mysql installation path is as follows: / usr/local/mysql/bin

6. Execute the following mysql built-in repair command: www.2cto.com

. / myisamchk-c-r / usr/local/mysql/data/gc_tech/tab_staff.MYI

If the following information is returned, the repair is successful:

Data records: 12386

-Fixing index 1

-Fixing index 2

7. Restart the mysql and imu services and check that the application returns to normal.

The above content is how to solve the MySQL database table corruption, have you learned the knowledge or skills? If you want to learn more skills or enrich your knowledge reserve, you are welcome to 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

Database

Wechat

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

12
Report