当前位置: 代码迷 >> 综合 >> MYSQL Workbench-8.0.27.1出现“Exception: Current profile has no WMI enabled“错误的解决方法
  详细解决方案

MYSQL Workbench-8.0.27.1出现“Exception: Current profile has no WMI enabled“错误的解决方法

热度:69   发布时间:2023-11-24 22:21:35.0

MYSQL Workbench-8.0.27.1出现"Exception: Current profile has no WMI enabled"错误的解决方法

在使用MYSQL Workbench-8.0.27.1去进入server status 的时候出现了"Exception: Current profile has no WMI enabled"的错误和
"Could not acquire management access for administration
RuntimeError:Target host is configured as Windows,but seems to be a different OS,Please review the connection settings."的错误警告。

一番搜索之后发现了MySQL的官方bug集合中有只有国人报上了如此这般的错误报告,我就猜可能是语言的问题。

观察了错误log

Traceback (most recent call last):File "C:\Program Files\MySQL\MySQL Workbench 8.0\modules\wb_server_management.py", line 404, in local_run_cmd_windowsretcode = OSUtils.exec_command(command, output_handler)File "C:\Program Files\MySQL\MySQL Workbench 8.0\workbench\os_utils.py", line 360, in exec_commandfor line in iter(process.stdout.readline, ""):File "C:\Program Files\MySQL\MySQL Workbench 8.0\Python\Lib\codecs.py", line 322, in decode(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xbb in position 0: invalid start byte

看最后一行可以发现就是字符集utf-8的问题,所以打开C:\Program Files\MySQL\MySQL Workbench 8.0\workbench\os_utils.py文件,把其中的utf-8改为gbk,最后重启MySQL Workbench 就可以了。

  相关解决方案