首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >本机表‘performance_schema’。‘?’具有错误的结构

本机表‘performance_schema’。‘?’具有错误的结构
EN

Stack Overflow用户
提问于 2011-06-09 12:29:58
回答 5查看 98.9K关注 0票数 75

我得到了以下信息:

代码语言:javascript
复制
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管理器变得不稳定,我收到了很多:

代码语言:javascript
复制
"MySQL server has gone away"
EN

回答 5

Stack Overflow用户

发布于 2016-08-27 03:28:33

我有这个问题,答案来自@Berend de Boer

升级后重启mysql。

[ERROR]Native table performance schema has the wrong structure

票数 19
EN

Stack Overflow用户

发布于 2017-06-14 10:57:24

如果在以前的安装上安装了MySQL,而该安装没有配置性能架构或可能没有所有当前表的较早版本的性能架构,则会遇到此错误。

我在mamp上也遇到了这个问题。为了解决这个问题,我执行了以下命令:

代码语言:javascript
复制
cd /Applications/MAMP/bin/
sudo ./upgradeMysql.sh 

请记住重新启动mysql服务器。

您可以阅读Performance Schema Build Configuration以了解更多详细信息。

票数 8
EN

Stack Overflow用户

发布于 2014-01-08 16:04:17

如果数据库是Akonadi (KDE)数据库,则以上内容是不够的。您需要镜像提供给mysqld的选项,请使用

代码语言:javascript
复制
ps aux | grep mysql

将选项复制到根目录命令(我不需要'-u mysql_upgrade -p‘,但您可能需要)

代码语言:javascript
复制
mysql_upgrade --defaults-file=/home/USER/.local/share/akonadi/mysql.conf --datadir=/home/USER/.local/share/akonadi/db_data/ --socket=/tmp/akonadi-USER.x0Bvxr/mysql.socket

我真的认为--socket选项是关键。

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/6288103

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档