且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

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

更新时间:2023-09-15 17:03:40

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

I've reproduced the same issue by clicking server status:

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 

点击后cancel是:

Error during ""

error calling Python module function WbAdmin.openAdminSection

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

using MySQL Server 8.0.23 & MySQL Workbench 8.0.23 for 64-bit OS Windows 10.

注意:在我的情况下,所有环境变量都配置正确.

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

Solved it only by reinstalling and using another version like MySQL Workbench 8.0.20, but I'd really recommend also downgrade version of server to MySQL Server 8.0.20 to avoid other bugs, e.g.: creating/deleting schemes and so on.

相同的版本应该与所有产品匹配才能正常工作.