gpt4 book ai didi

c# - MySql.Data.MySqlClient.MySqlException : 'Table ' performance_schema. session_variables'不存在'

转载 作者:行者123 更新时间:2023-11-29 10:02:07 26 4
gpt4 key购买 nike

我的 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吗?

预先感谢您帮助我更清楚地了解事情。

最佳答案

您链接到的命令(mysql_upgrade -u root -p --force)在 MySQL 服务器上运行,可以在 Windows 命令提示符(如果是 Windows 服务器)或 bash(或Linux 上类似的 Unix shell 提示符)。您可能需要让服务器管理员为您运行它。

performance_schema.session_variables 表仅在 MySQL Server 5.7.6 及更高版本中可用。如果您运行的是早期版本(或不同的数据库服务器,例如 MariaDB),则该表可能不存在,从而导致您看到错误。

关于c# - MySql.Data.MySqlClient.MySqlException : 'Table ' performance_schema. session_variables'不存在',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52702803/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com