mysql 'performance_schema'.'session_variables' 问题处理

来源:互联网 发布:淘宝小二布置作业短信 编辑:程序博客网 时间:2024/05/21 17:21

今天,升级了mysql 5.7,使用mysql-workbench时,处理问题,无法连接mysql服务了。

先提示’performance_schema’.’session_variables’不存在,后来提示结构错误:

mysql-workbench Connecting to MySQL server ... Native table 'performance_schema'.'session_variables' has the wrong structure

执行操作:

1.输入:mysql_upgrade -uroot -p

2.重启mysql服务:mysql.service restart

然后就操作正常了。

0 0