我得到以下内容:
Native table 'performance_schema'.'file_instances' has the wrong structure
Native table 'performance_schema'.'cond_instances' has the wrong structure
Native table 'performance_schema'.'rwlock_instances' has the wrong structure
Native table 'performance_schema'.'mutex_instances' has the wrong structure
...
Run Code Online (Sandbox Code Playgroud)
并且当它重新启动MySql时出现这些错误.它似乎导致MySql管理员变得不稳定,我得到了很多:
"MySQL server has gone away"
Run Code Online (Sandbox Code Playgroud)
Mus*_*usa 219
在shell中尝试以下命令(root用户在这里是mysql root用户,而不是系统root)
sudo mysql_upgrade -u root -p
Run Code Online (Sandbox Code Playgroud)
确保在运行此命令后重新启动mysql(在评论中全部归功于@Mikepote.)
Ale*_*ets 22
我的情况是在桌面上运行特定查询时出现的情况.
并且日志还包含:
缺少系统表mysql.proxies_priv; 请运行mysql_upgrade来创建它
我运行了mysql_upgrade,然后问题就消失了.
当您在以前的安装中安装了MySQL时,会遇到此错误,该安装是在没有性能架构或性能架构的较旧版本(可能没有所有当前表)的情况下配置的。
我在mamp上也遇到了这个问题。为了解决这个问题,我执行了以下操作:
cd /Applications/MAMP/bin/
sudo ./upgradeMysql.sh
Run Code Online (Sandbox Code Playgroud)
记住要重启mysql服务器。
您可以阅读性能架构构建配置以获取更多详细信息。
Ahm*_*gle -3
显然 MySQL 模式存储由于某种原因而损坏。这些原因可能是:
information_schema
如果您没有备份但仍然可以访问数据,请先备份数据,然后执行以下操作:
如果你有备份,那么重新安装MySQL(之前彻底清除mysql的所有数据),然后导入你的数据。
归档时间: |
|
查看次数: |
85396 次 |
最近记录: |