I hope someone can help me. I was using MySQL Workbench on Windows 7 for years, but now I got a new machine on Windows 10, I installed MySQL Workbench but when I try to connect to a database I always get the same error "Unable to connect to localhost" but I am not trying to connect to localhost but to another DB server. Telnet to the server on port 3306 works fine but MySQL Workbench doesn't even try to connect to the server - it immediately spews the error. The log just says:
13:21:04 [ERR][SQL Editor Form]: SqlEditorForm: exception in do_connect method: Exception: Unable to connect to localhost
13:21:04 [ERR][ GRTDispatcher]: exception in grt execute_task, continuing: Exception: Unable to connect to localhost
13:21:04 [ERR][ GRTDispatcher]: worker: task 'execute sql queries' has failed with error:.Unable to connect to localhost
13:21:04 [ERR][ WQE backend]: Got an exception during connection: Unable to connect to localhost
13:21:04 [ERR][SQL Editor Form]: SQL editor could not be connected: Unable to connect to localhost
13:21:04 [ERR][SQL Editor Form]: Your connection attempt failed for user 'MyUser' to the MySQL server at MyDBserverIP:3306: Unable to connect to localhost
Can someone please tell me why is it trying to connect to localhost (if that is even what it is doing) when I am configuring a different IP address? Thank you in advance.
ping -4 localhost
from a command windows – Seismo