mysql - 将 MySql 从 5.1 升级到 5.6.10 后还原转储文件时出错

标签 mysql

第 3 行错误 1728:无法从 mysql.proc 加载表已损坏

升级MySql版本后出现该错误。我正在从 5.1 升级到 5.6.10。 当我尝试恢复转储文件时出现错误。

最佳答案

运行 mysql_upgrade .据我所知,这是标准的 MySQL 升级步骤。

来自 MySQL 5.6 upgrade instructions :

After upgrading to a new version of MySQL, run mysql_upgrade (see Section 4.4.7, “mysql_upgrade — Check and Upgrade MySQL Tables”). This program checks your tables, and attempts to repair them if necessary. It also updates your grant tables to make sure that they have the current structure so that you can take advantage of any new capabilities. (Some releases of MySQL introduce changes to the structure of the grant tables to add new privileges or features.)

关于mysql - 将 MySql 从 5.1 升级到 5.6.10 后还原转储文件时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14933920/

相关文章:

php - 如何使用sql查询从另一个表中获取数据?

javascript - 使用 Sequelize ORM 创建多个 INNER JOINS

php - 结合 mysql 中 3 个查询的 3 个输出并进行一些计算

mysql - 除了 ADD UNIQUE 或 SELECT GROUP BY 之外删除重复项的最佳查询是什么

C# - 为什么时间和日期不保存在 mysql 数据库中?

php - 比较所有 php 框架以检查哪个更高效

php - 使用 PHP 和 MySql 创建考勤表

php - 写入文本文件并更新数据库

mysql - 选择符合时间表mysql的用户

mysql - 从本地主机连接到 Docker MySQL 容器?