After MySQL workbench 8.0.23 Mac version is installed successfully, double-click to open and flash back
Start at the command line and you can see the error:
Fatal Python error: initfsencoding: unable to load the file system codec, sys.path = ['/Users/georgi/Applications/MySQLWorkbench.app/Contents/Resources/libraries', '/Library/Frameworks/Python.framework/Versions/3.7/lib/python37.zip', '/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7', '/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/lib-dynload']
ModuleNotFoundError: No module named 'encodings'
The reason is python
Solution:
1. Scheme 1: command line startup
PYTHONPATH=/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7 /Applications/MySQLWorkbench.app/Contents/MacOS/MySQLWorkbench
2. Scheme 2: modify the MySQL workbench running file
cd /Applications/MySQLWorkbench.app/Contents/MacOS
mv MySQLWorkbench MySQLWorkbench.bak
echo "PYTHONPATH=/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7 /Applications/MySQLWorkbench.app/Contents/MacOS/MySQLWorkbench.bak" > MySQLWorkbench
chmod +x MySQLWorkbench
After executing the above commands, double-click MySQL workbench to start normally
reference resources: https://bugs.mysql.com/bug.php?id=102364
Read More:
- How to Solve MacOS Big Sur MySQL workbench flashback problem
- MySQL Workbench: Error Code: 2013. Lost connection to MySQL server during query solution
- MySQL Workbench Failed to Connect to MySQL at 127.0.0.1:3306 with user root Bad handshake
- [MySQL] the solution of MySQL workbench “error code: 1175”
- mysql workbench Error Code: 1046. No database selected Select the default DB to be used
- MySQL workbench insert data prompt error: 1046 (errorcode: 1046. No database select…)
- Solution to MySQL workbench error 1148 unable to load local data
- The MAC system installs MySQL client, and the error is solved_ config not found
- ruby 2.1.1 rails 4.2.0 Install gemset mysql command line tool for mac osx
- Workbench Could not connect the SSH Tunnel Authentication error
- Mac: how to show hidden files under Apple Mac operating system
- Vs output flashback
- Error report and flashback after packaging pynput into exe
- Solution of vs program flashback problem
- Three solutions to command line flashback in VS
- Several reasons of program flashback crash
- Vs debug window flashback
- Solve the problem of visual studio console flashback
- Vs series console flashback solution
- run.bat Operation flashback