美文网首页
提示Table ‘performance_schema.sess

提示Table ‘performance_schema.sess

作者: 晓函 | 来源:发表于2017-05-08 13:13 被阅读736次

运行mysql时,提示Table ‘performance_schema.session_variables’ doesn’t exist

解决的方法是:
第一步:在管理员命令中输入:

cd C:\Program Files\MySQL\MySQL Server 5.7\bin
mysql_upgrade -u root -p --force

第二步:重新启动mysql的服务:

net stop mysql57
net start mysql57

再次运行mysql,就解决了。
注意,两步缺一不可。一定要使用管理员身份打开命令行窗口执行上面的命令。

相关文章

网友评论

      本文标题:提示Table ‘performance_schema.sess

      本文链接:https://www.haomeiwen.com/subject/qvpmtxtx.html