mysql5.5升级5.7session_variables 问题处理
young / / mysql / 阅读量

今天,mysql从5.5升级了mysql 5.7,升级完成后无法连接mysql服务了。
先提示’performance_schema’.’session_variables’不存在
后来提示结构错误:mysql-workbench Connecting to MySQL server ... Native table 'performance_schema'.'session_variables' has the wrong structure
执行操作:

# 升级系统表
mysql_upgrade -uroot -p
# 重启
mysql.service restart

然后就操作正常了。

支付宝捐赠
请使用支付宝扫一扫进行捐赠
微信捐赠
请使用微信扫一扫进行赞赏
有 0 篇文章