MySQL WorkBench 8.0.25出现“Exception: Current profile has no WMI enabled"

找到文件

C:\Program Files\MySQL\MySQL Workbench 8.0\workbench\os_utils.py

修改编码utf-8到gbk即可解决

process = subprocess.Popen(command, stdin = subprocess.PIPE, encoding="utf-8", stdout = subprocess.PIPE, stderr = subprocess.STDOUT, shell=True)

process = subprocess.Popen(command, stdin = subprocess.PIPE, encoding="gbk", stdout = subprocess.PIPE, stderr = subprocess.STDOUT, shell=True)

posted @ 2022-03-15 21:39  fineshine  阅读(1395)  评论(0)    收藏  举报