我得到了以下信息:
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"
发布于 2016-08-27 03:28:33
发布于 2017-06-14 10:57:24
如果在以前的安装上安装了MySQL,而该安装没有配置性能架构或可能没有所有当前表的较早版本的性能架构,则会遇到此错误。
我在mamp上也遇到了这个问题。为了解决这个问题,我执行了以下命令:
cd /Applications/MAMP/bin/
sudo ./upgradeMysql.sh
请记住重新启动mysql服务器。
您可以阅读Performance Schema Build Configuration以了解更多详细信息。
发布于 2014-01-08 16:04:17
如果数据库是Akonadi (KDE)数据库,则以上内容是不够的。您需要镜像提供给mysqld的选项,请使用
ps aux | grep mysql
将选项复制到根目录命令(我不需要'-u mysql_upgrade -p‘,但您可能需要)
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选项是关键。
https://stackoverflow.com/questions/6288103
复制相似问题