昨天,校党委宣传部的W老师打电话向我寻求帮助,说中南民大论坛MySQL数据库发生故障,他们试图用5月7日的数据库备份去恢复,但没有成功。我晚上回宿舍后,登录到民大论坛服务器上一看,原来是论坛MySQL数据库的一张MySQL表损坏。根据我的经验,成功修复MySQL损坏表的概率是90%,根本没有必要急着去用旧的数据库备份去恢复,何况备份又不及时,5月7日到发生故障的5月22日,意味着要丢失15天的数据啊。

  我修复了5月22日的数据库,故障发生之前的数据没有丢失。方法很简单,四步即可搞定。

  ①、用root帐号从命令行登录MySQL:
  mysql -u root -p

  ②、输入root帐号的密码。

  ③、选定数据库名(本例中的数据库名为studentmis):
  use studentmis;

  ④、修复损坏的表(本例中要修复的表为smis_user_student):
  repair table smis_user_student;

  点击在新窗口中浏览此图片

  注:以上操作适用于MySQL的MyISAM表存储结构。

Tags: ,



技术大类 » 数据库技术 | 评论(66) | 引用(0) | 阅读(53064)
高仿包 Homepage
2015-4-29 09:57
happy wheels Email
2018-11-20 17:25
The information you share is great and useful. Thank you for sharing.happy wheels
temple run Email
2018-11-20 17:30
Information about the main functions of F5 BIG-IP is very good and useful. Thank you for sharing.Temple run
shz Email
2022-6-29 00:19
This is my first time i visit here and I found so many interesting stuff in your blog especially it's discussion, thank you.  online dealings
shz Email
2022-6-29 00:24
I just got to this amazing site not long ago. I was actually captured with the piece of resources you have got here. Big thumbs up for making such wonderful blog page!  online dealings
shz Email
2022-6-29 00:32
I wanted to leave a little comment to support you and wish you a good continuation. Wishing you the best of luck for all your blogging efforts.  online dealings
shz Email
2022-6-29 00:39
This is my first time i visit here and I found so many interesting stuff in your blog especially it's discussion, thank you.  online dealings
shz Email
2022-6-29 00:44
I read that Post and got it fine and informative. Please share more like that...  online dealings
shz Email
2022-6-29 00:54
I really enjoy reading and also appreciate your work.  online dealings
Lucky cola
2024-2-7 16:04
Immerse yourself in the ultimate gaming universe.  Lucky cola
seoexpert Email
2024-6-27 00:37
I’ve been surfing online more than three hours today, yet I never found any interesting article like yours. It’s pretty worth enough for me. In my opinion, if all webmasters and bloggers made good content as you did, the web will be a lot more useful than ever before. im钱包下载
seoexpert Email
2024-6-28 02:47
You there, this is really good post here. Thanks for taking the time to post such valuable information. Quality content is what always gets the visitors coming. 纸飞机
seoexpert Email
2024-6-30 03:56
Hello, you old to engrave magnificent, except the last few posts have been kinda boring… I skip your super writings. Historical several posts are merely a bit out of track! extend on! 电报下载
seoexpert Email
2024-7-2 16:34
This is certainly additionally an exceedingly wonderful offer everyone truly qualified on the lookout with. It's always not likely everyday there is chances read a little something. winrar官网
Waylon Email
2024-7-5 03:50
I read a lot of stuff and i found that the way of writing to clearifing that exactly want to say was very good so i am impressed and ilike to come again in future. 愛思助手windows
MAC3524 Email
2024-7-15 19:38
TelegramTelegram is a cloud-based mobile and desktop messaging app with a focus on security and speed.Telegram中文版下载 | 安全高效的即时通讯https://www.telegramshk.com   UEsdwer6S
MAC3524
2024-8-14 15:09
I am glad that you have successfully fixed the issue of MySQL database corruption, avoiding the loss of a large amount of data. In fact, in this situation, instead of rushing to use backup recovery, it is better to try repairing the database first. This reminds me of some database management tips we discussed on https://telegram-hongkong.com/ before, I really benefited a lot
telegrmaioscom12 Email Homepage
2024-8-30 19:04
What a timely fix! Being able to fix the problem without losing data is really a skillful move. I have also seen similar database repair discussions on Telegram中文, where everyone shared a lot of practical MySQL tips and experiences, which are very worth referring to.https://www.telegram-ios.com
telegrmaioscom34 Email Homepage
2024-8-30 19:05
Restoring with an old backup will indeed result in a large loss of data, but fortunately you repaired the database in time. There are many technical exchange groups on <a href="https://www.messenger-telegram.com">Telegram中文版</a>, and there are many discussions about MySQL troubleshooting. Maybe you can seek help there when you encounter similar problems in the future.
enigma下载 Email Homepage
2024-9-5 11:56
Thank you for sharing this information. I really enjoyed your blog post. You have indeed shared an informative and interesting blog post with people.enigma下载enigma官网enigma聊天 软件enigma网页版
分页: 3/4 第一页 上页 1 2 3 4 下页 最后页
发表评论
表情
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
打开HTML
打开UBB
打开表情
隐藏
记住我
昵称   密码   游客无需密码
网址   电邮   [注册]