【已解决】mysql 1877错误 1146错误:提示数据表丢失、损坏、错误数据
错误信息
Django中错误信息
django.db.utils.InternalError: (1877, “Operation cannot be performed. The table ‘XXX.xxx’ is missing, corrupt or contains bad data.”)
XXX.xxx:数据库名:表名
大致意思是:操作没法执行,xxx表丢失、损坏或错误数据。
mysql进行表查询,报错
(1146, “Table ‘XXX.xxx’ doesn’t exist”)
XXX.xxx:数据库名:表名
解决过程
通过大量搜索发现,并没有找到解决问题的方法,
基本的问题都是,mysql 3021 主从复制错误,
解决方法
最后最后,还是通过万能的重启大法进行解决的,
果然,重启解决一切
附上mysql重启命令:
重启 : sudo service mysql restart
启动 : sudo service mysql start
停止 : sudo service mysql stop