mysql错误(基于docker)
Table ‘performance_schema.session_status’ doesn’t exist解决方案
参考:https://blog.csdn.net/qq_33048069/article/details/82895931
1、 进入所连接的mysql的bin目录
# docker exec -it {mysqlContainerId} /bin
2、 执行命令
# mysql_upgrade -u {mysqlUsername} -p --force
3、 输入密码
Enter password:
4、 如果出现报错 Native table ‘performance_schema’.‘session_status’ has the wrong structure则执行
set @@global.show_compatibility_56=ON;
然后退出mysql容器
exit
5、 最后重启mysql
docker restart mysql