我的C#程序给我这个错误:
MySql.Data.MySqlClient.MySqlException : 'Table
'performance_schema.session_variables' doesn't exist'
然后我遇到了这个答案: Table 'performance_schema.session_variables' doesn't exist
知道使用EasyPhp时,我不知道在哪里写此命令。
这是Windows命令提示符吗?
是mysql shell吗?
预先感谢您帮助我更清楚地了解事物。
答案 0 :(得分:1)
您链接到(mysql_upgrade -u root -p --force
)的命令在MySQL服务器上运行,可以在Windows的Windows命令提示符下(如果是Windows服务器)或在Linux上的bash(或类似的Unix shell提示符)上运行。您可能需要让服务器管理员为您运行它。
performance_schema.session_variables
表仅在MySQL Server 5.7.6和更高版本中可用。如果您运行的是早期版本(或其他数据库服务器,例如MariaDB),则该表可能不存在,从而导致出现错误。