无法获取管理访问权限。运行时错误:无法执行命令 chcp

Sar*_*kar 10 runtime-error mysql-workbench

我在 Windows 7 中安装了 MySQL Workbench 8.0。安装后,我只是单击服务器状态,但出现如下错误Could not acquire management access for administration. Run-time Error: Unable to execute command chcp. Please make sure that the C:Windows\System32 directory is in your path environment variable。我该如何解决这个错误?

小智 22

我在“控制面板”>“区域”>“管理”>“更改系统区域设置”中启用参数“Beta:使用 UTF-8 进行全球语言支持”时解决了同样的问题...这令人不安,因为它与 PATH 环境变量无关。但这是工作。请注意,我在法语环境和 MySQL Workbench 8.0.24 版本上工作。

  • 对我来说没问题:Panneau de configuration > Horloge et région > Région > Onglet Administration > Modifier les paramètres régionaux > Cocher Bêta :“Utiliser le format UTF-8 etc.” (6认同)

inv*_*bl3 6

我通过单击服务器状态重现了相同的问题:

Could not acquire management access for administration

RuntimeError: Unable to execute command chcp. Please make sure that the C:\Windows\System32 directory is in your PATH environment variable 
Run Code Online (Sandbox Code Playgroud)

点击后cancel是:

Error during ""

error calling Python module function WbAdmin.openAdminSection
Run Code Online (Sandbox Code Playgroud)

使用适用于 64 位操作系统Windows 10的 MySQL Server 8.0.23 和 MySQL Workbench 8.0.23

注意: 在我的例子中,所有环境变量都配置正确。

仅通过重新安装并使用其他版本(例如MySQL Workbench 8.0.20 )来解决它,但我真的建议将服务器版本降级到MySQL Server 8.0.20以避免其他错误,例如:创建/删除方案等。

相同版本应匹配所有产品才能正常工作。

  • 只是为了让其他人知道,我尝试了所有其他解决方案(来自这个问题以及其他问题)。从 8.0.23 降级到 8.0.22 / 8.0.21 / 8.0.20 是我在 Windows 10 64 位上唯一可行的解​​决方案(所有三个版本 22/21/20 都工作得很好,没有错误)。 (3认同)

小智 -1

只要添加C:\Windows\System32到Path中,问题就解决了!

不要忘记添加";"到单独的地址。