Mysql出现Table 'performance_schema.session_status' doesn't exist

  1. 进入mysql的bin目录,在命令行下运行
    mysql_upgrade -u root -p –force
    然后重启mysql net stop mysql
    net start mysql

  2. 在命令行下输入如下命令
    mysql -u {user} -p
    mysql> set @@global.show_compatibility_56=ON;
    或者在配置文件中 在/etc/my.cnf中:
    show_compatibility_56 = 1

详情参见:https://stackoverflow.com/questions/36746677/table-performance-schema-session-variables-doesnt-exist/36748816

猜你喜欢

转载自blog.csdn.net/qq_34211771/article/details/80556916