Reputation: 11
Workbench 8.0 will not connect properly to the MYSQL root instance running on a clean install of windows 10.
Errors received attempting to start and stop: "argument 2: <class 'Type Error': wrong type"
Error received when accessing Options file: "UnicodeDecodeError:'Charmap' codec can't decode byte 0x9d in position 4326: Character maps to
Solved the options file problem by replacing my.ini with a simplified version. Options file now works and database functions but still cannot start or stop from workbench. Unable to find what was causing the problem in the default my.INI installed by the installer.
This is only occurring on recent install of Windows 10 and MySQL 8.0. Older versions of Mysql and Windows 10 work fine. Uninstalled and and reinstalled both mysql and windows with same error repeating.
what happends when attempting to stop server from Workbench: 2021-02-01 19:25:44 - Workbench will use cmd shell commands to start/stop this instance
2021-02-01 19:25:44 - Server is running
2021-02-01 19:25:46 - Could not stop server: argument 2: <class 'TypeError'>: wrong type
2021-02-01 19:25:48 - Checking server status...
2021-02-01 19:25:48 - MySQL server is currently running
2021-02-01 19:25:48 - Checking server status...
2021-02-01 19:25:48 - MySQL server is currently running
2021-02-01 19:25:44 - Workbench will use cmd shell commands to start/stop this instance
2021-02-01 19:25:44 - Server is running
2021-02-01 19:25:46 - Could not stop server: argument 2: <class 'TypeError'>: wrong type
The above error is not showing up in the error log (see below) and I am able to stop and start the service via the Window's Service APP where the service is listed as MYSQL 80.
2021-02-02T03:20:43.902111Z 0 [Warning] [MY-010915] [Server] 'NO_ZERO_DATE', 'NO_ZERO_IN_DATE' and 'ERROR_FOR_DIVISION_BY_ZERO' sql modes should be used with strict mode. They will be merged with strict mode in a future release.
2021-02-02T03:20:43.903132Z 0 [System] [MY-010116] [Server] C:\Program Files\MySQL\MySQL Server 8.0\bin\mysqld.exe (mysqld 8.0.23) starting as process 888
2021-02-02T03:20:43.919261Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
2021-02-02T03:20:44.271604Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
2021-02-02T03:20:44.411160Z 0 [System] [MY-011323] [Server] X Plugin ready for connections. Bind-address: '::' port: 33060
2021-02-02T03:20:44.465498Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed.
2021-02-02T03:20:44.465982Z 0 [System] [MY-013602] [Server] Channel mysql_main configured to support TLS. Encrypted connections are now supported for this channel.
2021-02-02T03:20:44.491579Z 0 [System] [MY-010931] [Server] C:\Program Files\MySQL\MySQL Server 8.0\bin\mysqld.exe: ready for connections. Version: '8.0.23' socket: '' port: 3306 MySQL Community Server - GPL.
2021-02-02T03:23:46.880575Z 0 [System] [MY-013105] [Server] C:\Program Files\MySQL\MySQL Server 8.0\bin\mysqld.exe: Normal shutdown.
2021-02-02T03:23:48.065031Z 0 [System] [MY-010910] [Server] C:\Program Files\MySQL\MySQL Server 8.0\bin\mysqld.exe: Shutdown complete (mysqld 8.0.23) MySQL Community Server - GPL.
2021-02-02T03:23:50.987730Z 0 [Warning] [MY-010915] [Server] 'NO_ZERO_DATE', 'NO_ZERO_IN_DATE' and 'ERROR_FOR_DIVISION_BY_ZERO' sql modes should be used with strict mode. They will be merged with strict mode in a future release.
2021-02-02T03:23:50.988829Z 0 [System] [MY-010116] [Server] C:\Program Files\MySQL\MySQL Server 8.0\bin\mysqld.exe (mysqld 8.0.23) starting as process 7420
2021-02-02T03:23:51.004657Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
2021-02-02T03:23:51.359656Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
2021-02-02T03:23:51.504507Z 0 [System] [MY-011323] [Server] X Plugin ready for connections. Bind-address: '::' port: 33060
2021-02-02T03:23:51.553628Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed.
2021-02-02T03:23:51.554141Z 0 [System] [MY-013602] [Server] Channel mysql_main configured to support TLS. Encrypted connections are now supported for this channel.
2021-02-02T03:23:51.579556Z 0 [System] [MY-010931] [Server] C:\Program Files\MySQL\MySQL Server 8.0\bin\mysqld.exe: ready for connections. Version: '8.0.23' socket: '' port: 3306 MySQL Community Server - GPL
I don't believe this is a bug. I am not a programmer therefore even if it is a bug I would not know what to report. I am guessing that this is operator error. I am missing something, repeatedly. Any help would be greatly appreciated.
Upvotes: 1
Views: 6422
Reputation: 1
I've been struggling with this problem for a week now after editing the MySql my.ini file with Windows 10 notepad. After editing it, I was unable to start any database. After replacing the my.ini file with a backup, it worked normally. So, I figured Notepad was adding BOM characters when saving but it was not. I encountered the same problem again using the option file function in MySql Workbench. I got the same error mentioned above. I am not that familiar with dealing with a hex editor or encoding in general but I did notice I could find the offset position using the free Neo hex editor. I know some posters have suggested changing the characters at that location mentioned in the error. But since I didn't know what they meant, my first attempts failed. Then I noticed the corresponding location in the comment section in the my.ini file for the byte in the error offset(9D) was a period. So, I just went to another period in the comment section and copied its byte(0D) and replaced the 9D byte with it. I searched the rest of the file and replaced several other 9D bytes. Saved the file and had no problem afterwards. I'm not sure what is creating the problem but for me, this definitely solved this problem. I read the post from ΑΓΡΙΑ ΠΕΣΤΡΟΦΑ and I believe this is similar if not the same suggestion as his post. Since I am a beginner user and didn't understand exactly what he wanted me to do when I first read it, I tried to be more descriptive here for other beginners. The problem definitely has to do with the characters around the word Unique. Search for that word and change the symbols/bytes around it and that should solve the problem. Hope this helps!
Upvotes: 0
Reputation: 1672
I had the same problem with the my.ini file. Make a backup an open it with the Notepad++. Go to the position with the error and change the character... you can see in status bar the line .. and the position ... In my case i change three characters in line 135. (it is a comment line) from: # range from 1 to 2^32 − 1. “Unique” means that each ID must be different to: # range from 1 to 2^32 - 1. "Unique" means that each ID must be different
Save the file and use it. If give more same errors modify them with the same way.
Upvotes: 2
Reputation: 1
Here are the steps I took to resolve my MySQL Workbench 8.0.23 issue that resulted in an inability to start & stop the MySQL server process (mysqld) from MySQL Workbench (O/S=Windows only answer)...
<value type="string" key="sys.mysqld.start">sc start MySQL80</value>
<value type="string" key="sys.mysqld.stop">sc stop MySQL80</value>
<value type="string" key="sys.mysqld.start">net start MySQL80</value>
<value type="string" key="sys.mysqld.stop">net stop MySQL80</value>
Notes:
Upvotes: 0
Reputation: 21
In the my.ini file sometimes “ is used instead of " in the comments. Just replace the “ with normal " and save the my.ini file. No problems afther this change.
Upvotes: 2