Bug #108460 Can't connect to server
Submitted: 12 Sep 2022 10:15 Modified: 13 Sep 2022 12:06
Reporter: sneha sudhan Email Updates:
Status: Can't repeat Impact on me:
None 
Category:MySQL Workbench Severity:S1 (Critical)
Version:Workbench 8.0 OS:Windows
Assigned to: CPU Architecture:Any

[12 Sep 2022 10:15] sneha sudhan
Description:
Can't connect to server. An error window "MySQL Workbench unexpected error" displayed

How to repeat:
Error arised Whenever connecting to the database

Open MySQL Workbench->Click Database menu->Click on  "Connect to Database" ->Click Ok button-> Error window "MySQL Workbench unexpected error" displayed
[12 Sep 2022 10:23] sneha sudhan
Password also given
[12 Sep 2022 12:01] MySQL Verification Team
Hello Sneha,

Thank you for the bug report.
To investigate further this issue at our end, may I kindly request you to launch workbench under debug mode (--log-level=debug3) and provide unaltered workbench log file(more details about log are explained here - https://dev.mysql.com/doc/workbench/en/workbench-reporting-bugs.html)? Thank you.

Regards,
Ashwini Patil
[12 Sep 2022 12:10] MySQL Verification Team
Bug #108461 marked as duplicate of this one.
[12 Sep 2022 12:43] MySQL Verification Team
Hello Sneha,

Thank you for the details.
Please provide unaltered workbench log file as explained above. Thanks.

Regards,
Ashwini Patil
[13 Sep 2022 6:27] MySQL Verification Team
Hello Sneha,

Thank you for the requested details.
Please:
1 Check that MySQL is running on address localhost
2 Check that MySQL is reachable on port 3306 (note: 3306 is the default, but this can be changed)
3 Check the user root has rights to connect to localhost from your address (MySQL rights define what clients can connect to the server and from which machines) 
4 Make sure you are both providing a password if needed and using the correct password for localhost connecting from the host address you're connecting from

Are you able to connect to MySQL Server using command line(with the same user credentials, host details as in MySQL Workbench)?

Regards,
Ashwini Patil
[13 Sep 2022 12:06] MySQL Verification Team
Hello Sneha,

Thank you for the details.
I tried to reproduce your issue on windows 10 with workbench 8.0.30 but I am not seeing any issues at my end.
Please re-install workbench using the repair option. Thanks.

Regards,
Ashwini Patil