如果从MySQL5.6升到5.7,可能会出现Table 'performance_schema.session_status' doesn't exist和Native table 'performance_schema'.'session_status' has the wrong structure这两个错误,解决办法:
执行以下指令:
mysql_upgrade -u root -p --force
然后重启MySQL:
systemctl restart mysqld
这样就正常了!!!