问题
I installed MySQL workbench 8.0 in windows 7. After the installation I just clicked server status its through the error like 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
. How can I solve this error?
回答1:
To resolve this problem on 64 bit system we have to follow two steps.
- add environment variable path to
C:\Windows\System32
we need chcp.com cmd file in
C:\Windows\SysWOW64
copy it fromC:\Windows\System32 path and paste in C:\Windows\SysWOW64
now close
mysql
workbench and reopen it.
Hope you got the answer.
回答2:
Just add the C:\Windows\System32
to the Path, and the problem will be solved!
Don't forget to add ";"
to separate addresses.
回答3:
Add the 'C:\Windows\System32' to the PATH environment variable.
Make sure you add it to PATH and not to Path.
回答4:
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
and after click cancel
was:
Error during ""
error calling Python module function WbAdmin.openAdminSection
using MySQL Server 8.0.23 & MySQL Workbench 8.0.23 for 64-bit OS Windows 10.
Notice: all environment variables were configured correct in my case.
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.
The same version should match all products to work correctly.
来源:https://stackoverflow.com/questions/53236494/could-not-acquire-management-access-for-administration-runtime-error-unable-to