当前位置:论坛首页 > Windows面板 > 求助

【待反馈】求助,mysql升级到最新后,数据库表坏了

发表在 Windows面板2021-12-7 12:02 [复制链接] 4 4278

宝塔后台根据提示升级MySQL 到最新版5.6.51后,数据库表提示1146table doesnt exist,在phpmyadmin内也是打不开的


mysql管理里面的的部分日志:
gh the .frm file for the table exists. See http://dev.mysql.com/doc/refman/5.6/en/innodb-troubleshooting.html for how you can resolve the problem.
2021-12-07 11:07:06 2516 [Warning] InnoDB: Cannot open table w_wenhua/ims_ft_lesson_aliyun_upload from the internal data dictionary of InnoDB though the .frm file for the table exists. See http://dev.mysql.com/doc/refman/5.6/en/innodb-troubleshooting.html for how you can resolve the problem.
2021-12-07 11:07:06 2516 [Warning] InnoDB: Cannot open table w_wenhua/ims_ft_lesson_article from the internal data dictionary of InnoDB though the .frm file for the table exists. See http://dev.mysql.com/doc/refman/5.6/en/innodb-troubleshooting.html for how you can resolve the problem.
2021-12-07 11:07:06 2516 [Warning] InnoDB: Cannot open table w_wenhua/ims_ft_lesson_attribute from the internal data dictionary of InnoDB though the .frm file for the table exists. See http://dev.mysql.com/doc/refman/5.6/en/innodb-troubleshooting.html for how you can resolve the problem.
2021-12-07 11:07:06 2516 [Warning] InnoDB: Cannot open table w_wenhua/ims_ft_lesson_banner from the internal data dictionary of InnoDB though the .frm file for the table exists. See http://dev.mysql.com/doc/refman/5.6/en/innodb-troubleshooting.html for how you can resolve the problem.



能看到表,但是打不开,提示数据库不存在
微信截图_20211207120111.png
微信截图_20211207120547.png
微信截图_20211207121331.png
使用道具 举报 只看该作者 回复
发表于 2021-12-7 14:35:50 | 显示全部楼层
您好,您更新前或者之前有没有做完整的数据库备份?修改文件后缀名是无法解决这个问题的
使用道具 举报 回复 支持 反对
发表于 2021-12-7 15:48:51 | 显示全部楼层
近期数据库没备份,不过找到一个早期的备份是完整的。恢复以前数据库备份文件后,网站正常,但是后面几个月还添加不少数据。
恢复以前完整数据库后,发现有问题的数据库是没有索引。
使用道具 举报 回复 支持 反对
发表于 2021-12-7 15:57:49 | 显示全部楼层
大炮运维V587 发表于 2021-12-7 14:35
您好,您更新前或者之前有没有做完整的数据库备份?修改文件后缀名是无法解决这个问题的 ...

mysql升级后,能否降级吗。
使用道具 举报 回复 支持 反对
发表于 2022-2-11 11:03:11 | 显示全部楼层
kuainiunet 发表于 2021-12-7 15:57
mysql升级后,能否降级吗。

升级数据库请在网站访问量极少的时候升级,否则肯定会造成数据表损坏,一但表损坏降级也无法解决问题
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

普通问题处理

论坛响应时间:72小时

问题处理方式:排队(仅解答)

工作时间:白班:9:00 - 18:00

紧急运维服务

响应时间:3分钟

问题处理方式:宝塔专家1对1服务

工作时间:工作日:9:00 - 18:30

宝塔专业团队为您解决服务器疑难问题

点击联系技术免费分析

工作时间:09:00至18:30

快速回复 返回顶部 返回列表