我得到了以下信息:
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
...然后,当我重新启动MySql时,这些错误就出现了。它似乎导致MySql管理器变得不稳定,我收到了很多:
"MySQL server has gone away"发布于 2011-06-09 12:43:31
显然,由于某种原因,MySQL模式存储被破坏了。这些原因可能是:
由于database.
如果您没有备份,但仍可以访问数据,请先备份数据,然后执行以下操作:
如果你有备份,那么重新安装MySQL (在此之前完全清除mysql的所有数据),然后导入你的数据。
发布于 2013-11-28 17:56:10
尝试在shell中执行以下命令(这里的root用户是mysql root用户,而不是系统根用户)
sudo mysql_upgrade -u root -p
sudo service mysql restart确保在运行此命令后重新启动mysql (在注释中所有的功劳都归功于@Mikepote )。
发布于 2011-10-20 18:39:14
在我的例子中,它是在表上运行特定查询时出现的。
日志中还包含:
缺少系统表mysql.proxies_priv;请运行mysql_upgrade以创建它
我已经运行了mysql_upgrade,在这个问题消失之后。
https://stackoverflow.com/questions/6288103
复制相似问题