mysqldump 备份时提示 Table  is marked as crashed  and should be repaired when using LOCK TABLES

1、进入数据库对该表进行检测:(先 use freeris2)

mysql> check tables billinginvoice_history;
+-------------------------+-------+----------+-------------------------------------------------------+
| Table                   | Op    | Msg_type | Msg_text                                              |
+-------------------------+-------+----------+-------------------------------------------------------+
| freeiris2.billinginvoice_history | check | warning  | Table is marked as crashed                            |
| freeiris2.billinginvoice_history | check | warning  | 1 client is using or hasn't closed the table properly |
| freeiris2.billinginvoice_history | check | error    | Record at pos: 1175720 is not remove-marked           |
| freeiris2.billinginvoice_history | check | error    | record delete-link-chain corrupted                    |
| freeiris2.billinginvoice_history | check | error    | Corrupt                                               |
+-------------------------+-------+----------+-------------------------------------------------------+

5 rows in set
2、使用repair解决方法:

mysql> repair table billinginvoice_history;
+-------------------------+--------+----------+------------------------------------------+
| Table                   | Op     | Msg_type | Msg_text                                 |
+-------------------------+--------+----------+------------------------------------------+
| freeiris2.billinginvoice_history | repair | warning  | Number of rows changed from 2349 to 2451 |
| freeiris2.billinginvoice_history | repair | status   | OK                                       |
+-------------------------+--------+----------+------------------------------------------+

再次进行dump备份就可以了。

备 份mysql数据库时报错:mysqldump: Got error: 145: Table './freeiris2/billinginvoice_history' is marked as crashed and should be repaired when using LOCK TABLES。

这样的错误。
搜索了一下,发现只要在mysqldump的时候加上--lock-tables=false就可以解决问题。
mysqldump -u root -pMyPassword DbName --lock-tables=false > data.sql

mysqldump 备份时提示 Table is marked as crashed and should be repaired when using LOCK TABLES相关推荐

  1. 关于出现 linux Table is marked as crashed and should be repaired

    关于出现 linux Table is marked as crashed and should be repaired 1.首先进入mysql命令台:mysql -u root -p 回车  输入密 ...

  2. 数据库 Table is marked as crashed and should be repaired 解决办法

    遇到这个问题几个敲命令轻松搞定 1.首先进入mysql命令台: mysql -u root -p 回车 输入密码 2.查询所有的库 mysql> show databases; 3.进入数据库& ...

  3. mysql数据表出现Table is marked as crashed and should be repaired 解决办法

    遇到这个问题几个敲命令轻松搞定 1.首先进入mysql命令台: mysql -u root -p 回车 输入密码 2.查询所有的库 mysql> show databases; 3.进入数据库& ...

  4. linux Table is marked as crashed and should be repaired

    遇到这个问题几个敲命令轻松搞定 1.首先进入mysql命令台: mysql -u root -p 回车  输入密码 2.查询所有的库 mysql> show databases; 3.进入数据库 ...

  5. Table '' is marked as crashed and should be repaired 解决方法

    解决方法: 找到mysql的安装目录的bin/myisamchk工具,在命令行中输入: myisamchk -c -r ../data/mysql/user.MYI 然后myisamchk 工具会帮助 ...

  6. mysql库提示 Table ‘xxx’ is marked as crashed and should be repaired

    公司信息站,机房冷启一次.再次开机后,网站能打开,信息能查,但是个别表出现提示:Table 'xxx' is marked as crashed and should be repaired .且无法 ...

  7. 解决数据库 Table 'content_tags' is marked as crashed and should be repaired 表损坏问题

    今天突然网站TAG页面打不开了,打开debug,发现提示 Table 'content_tags' is marked as crashed and should be repaired 这样的错误 ...

  8. mysql table crashed_快速解决MySQL:Table xxx is marked as crashed and should be repaired五个办法...

    查看MySQL错误日志看到 Table xxx  is marked as crashed and should be repaired 解决办法如下 第一种: 1.首先进入mysql命令台: mys ...

  9. 解决mysql Table ‘xxx’ is marked as crashed and should be repaired的问题。

    解决mysql Table 'xxx' is marked as crashed and should be repaired的问题. 某个表在进行数据插入和更新时突然出现Table 'xxx' is ...

最新文章

  1. Spring自定义注解+redis实现接口限流
  2. cmf php,cmf公共函数解析-common.php
  3. 什么叫做石英表_石英表和机械表的区别是什么
  4. fanuc机器人码垛编程实例_FANUC 机器人码垛编程详细讲解 记得收藏!
  5. 如何给Arduino项目添加音乐播放功能
  6. O2O模式是什么意思 O2O运作模式有哪些?
  7. ubuntu安装github 3D渲染库dirt
  8. win10怎么在开机时自动连接拨号上网
  9. 洛洛阅读—自己写的简约Android小说阅读器背景
  10. 回头看一看我的2018年
  11. html 字体兼容,设置兼容浏览器的中文字体
  12. 解析微信小程序真正的作用
  13. java中super的三种用法
  14. 页面运行时“无法显示XML页”的解决办法
  15. php 计算从开始时间到结束时间 总共有多少天
  16. 余弦定理和新闻的分类
  17. 每日总结(第一天)(2020/3/27/22:11)(1/90)
  18. 【Jmeter】安装配置:Jmeter 自定义创建桌面快捷方式
  19. dell最新型的服务器,灵活设计新标准!戴尔R720服务器评测
  20. 发了两个月传单,转行做了程序员

热门文章

  1. 哈哈,终于找回来了《手放开》
  2. 网易伏羲AI虚拟人技术赋能网易云音乐虚拟偶像“乐灵”正式出道
  3. 水体提取NDWI和MNDWI的比较分析
  4. 盘点2020 | Cocos 技术与实例教程集锦
  5. PolarDB for PostgreSQL透明加密
  6. GridView ItemTemplate 格式
  7. 如何写好个人简历,求职简历,什么样的简历模板最合适?
  8. 检查型异常和非检查型异常——Java
  9. 计算机amibios设置教程,AMI BIOS,详细教您刷新ami bios
  10. 单引号双引号 linux 的区别