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

你可能感兴趣的:(错误)