Table 'performance_schema.session_variables' doesn't exist

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

解决的方法是:

第一步:在管理员命令中输入:
mysql_upgrade -u root -p --force
  • 1
  • 1
第二步:重新启动mysql的服务:
net stop mysql
net start mysql
  • 1
  • 2
  • 1
  • 2

再次运行MySQL,就解决了。

注意,两步缺一不可。

原文地址:https://www.cnblogs.com/awishfullyway/p/6668174.html