Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save Howard20181/2ff72aa54b6aa3edc2250bd02beee726 to your computer and use it in GitHub Desktop.

Select an option

Save Howard20181/2ff72aa54b6aa3edc2250bd02beee726 to your computer and use it in GitHub Desktop.
KB:MySQL Workbench 8.0.42 does not support non-utf-8 encoding Windows systems
When you see the following pop-up window
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.
or there is an error message in the log about os_utils.py indicating that the utf-8 encoding conversion failed, apply the following patch
edit C:\Program Files\MySQL\MySQL Workbench 8.0\workbench\os_utils.py
add locale to imports
edit line
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 = locale.getencoding(), stdout = subprocess.PIPE, stderr = subprocess.STDOUT, shell=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment