当前位置:网站首页>使用sql语句修复表
使用sql语句修复表
2022-04-21 12:37:00 【u011042325】
网站的症状表现
例如article文章表损坏,出现网站后台登录正常,但是后台文章管理和前台文章部分的内容全部空白。
1、表损坏的原因
导致表损坏的原因有很多,一般常见的有以下几种:
- 服务器不正常关机导致表文件损坏;
- 硬盘故障;
- mysql写入操作时被关闭进程。
2、表损坏的症状
一个表损坏的症状从数据库上表现为:
- 打开表时会提示“Can't open file: ‘×××.MYI' (errno: 145) ”;
- 查询数据时会类似提示“Incorrect key file for table: '...'. Try to repair it ”;
- 日志中会有“Error: Table 'xxx' is marked as crashed and should be repaired”。
3、表损坏的修复
- 如Navicat可以右击损坏的表选择维护--修复表--快速;
- 使用sql语句修复“repair table table_name;”。
4、表损坏的预防
- 在关闭服务器/电脑前记得先关闭MYSQL服务;
- 注意数据库的定期备份。
版权声明
本文为[u011042325]所创,转载请带上原文链接,感谢
https://blog.csdn.net/u011042325/article/details/124164847
边栏推荐
- There is no market for virtual currency. Why can there be no small temptation for some people?
- The persistence, abandonment and redemption of new consumer brands in the Shanghai epidemic
- [software test series IX] description of matters to be provided for pressure test application
- Musk lives in the old Internet age?
- AES自动生成base64密钥加密解密
- 走迷宫(BFS)
- Aaai2022 | unbiased temporal knowledge reasoning based on probabilistic soft logic
- 上个网课都能被AI分析“在走神”,英特尔这个情绪检测AI火了
- 游戏行业实战案例2:玩家等级
- Seven ways of text reading based on C
猜你喜欢

Binary tree traversal series 01 - recursive traversal and recursive order
![[linked list] 148 Sort linked list](/img/1a/7f0c00af9d14ac0f7f011c4b4641a1.png)
[linked list] 148 Sort linked list

第四章 SQL查询之-层次化查询

What's the difference between you and the architect? How to improve

上个网课都能被AI分析“在走神”,英特尔这个情绪检测AI火了

How to choose the production company of product 3D display film?

Notepad + + how to copy multiple lines and paste them to the corresponding position

Vscode often pops up: an error occurred when trying to create a file in the target directory. Try again. Skip this file and close setup
![[C language implementation of address book] takes you through the key and difficult points of C language](/img/6d/62fd7f84532f072f30752c9878c69a.png)
[C language implementation of address book] takes you through the key and difficult points of C language

China Resources Yibao is rumored to have an IPO, and nongnongshanquan may usher in an early "old enemy"
随机推荐
Jsapi payment is missing appid
数据显示ETH燃烧的有多猛
有效三角形的个数 (双指针(逆向扫描)+二分)
I think you can tear the linked list by hand (1)
2022年一级注册建筑师考试建筑物理与设备复习题及答案
CVPR 2022 oral | Hong Kong Chinese open source posec3d: skeleton motion recognition framework based on 3d-cnn
2022年监理工程师考试质量、投资、进度控制练习题及答案
第四章 SQL查询之-层次化查询
R语言实现决策回归树的包rpart
龙智被评估为CMMI [3] 级
WordPress Amministrazione Aperta 3.7.3 任意文件读取
最佳实践 | 通过使用 Jira Service Management 改进 HR 工作流程
BEVSegFormer:一个来自任意摄像头的BEV语义分割方法
CVPR 2022 Oral|港中文开源PoseC3D:基于3D-CNN的骨骼动作识别框架
【论文学习】YOLO v2
Go语言 反射
马斯克活在旧互联网时代?
Study notes of deep learning (6)
Seven ways of text reading based on C
數據庫,把另一張錶某字段數據添加到另一個錶中,同時加入的時候加入自己需要的數據