This seems like a very specific issue but we are running into a problem connecting to a remote database when using MYSQL workbench. Workbench can't make the connection and gives me the error
Lost connection to MySQL server during query
I have tested the same credentials though a command line and it makes the connection without issue. In addition I tried using another Program (DBeaver) and same thing, I was able to connect without issue. So It seems like it is an issue with MYSQL workbench.
Things get a little complicated because I am connecting to ProxySql server (Which is why the port is 6033 instead of 3306) which is directing to the Server with the database on it. I've checked the install and it is working the way it's expected. But I don't understand why this would have any impact on my ability to connect from Workbench. If I can connect from the command line shouldn't I be able to connect from Workbench?
Edit: I set the logs to debug for more detailed output
This is what gets logged when i try to make a connection.
11:41:57 [DB3][SQL Editor Form]: Creating KeepAliveInterval timer...
11:41:57 [DB1][ mforms managed]: Looking up password for service: Mysql@IPADDRESS:6033, account: fuser
11:41:57 [DB1][ mforms managed]: Loading password cache
11:41:57 [DB1][ mforms managed]: Get special folder
11:41:57 [DB2][ mforms managed]: Decrypting password data
11:41:57 [DB2][ mforms managed]: Filling password cache
11:41:57 [DB1][ mforms managed]: Unloading password cache
11:41:57 [DB1][ mforms backend]: Looking up password for 'fuser'@'Mysql@IPADDRESS:6033' has succeeded
11:41:57 [DB1][ mforms managed]: Running a cancelable wait message
11:41:57 [DB3][ WQE backend]: Connecting SQL editor...
11:41:57 [DB3][ GRT task]: Sending task "execute sql queries" to dispatcher (wait)...
11:41:57 [DB1][ GRTDispatcher]: starting worker thread
11:41:57 [DB1][ GRTDispatcher]: worker thread running
11:41:57 [DB3][ GRTDispatcher]: Running task "execute sql queries"
11:41:57 [DB2][SQL Editor Form]: Notifying server state change of Mysql@IPADDRESS:6033 to not running
11:41:57 [ERR][SQL Editor Form]: SqlEditorForm: exception in do_connect method: Exception: Lost connection to MySQL server during query
11:41:57 [WRN][SQL Editor Form]: Lost connection to MySQL server during query
11:41:57 [ERR][SQL Editor Form]: Connection failed but remote admin does not seem to be available, rethrowing exception...
11:41:57 [ERR][ GRTDispatcher]: exception in grt execute_task, continuing: Exception: Lost connection to MySQL server during query
11:41:57 [DB3][ GRTDispatcher]: Task "execute sql queries" finished
11:41:57 [ERR][ GRTDispatcher]: worker: task 'execute sql queries' has failed with error:.Lost connection to MySQL server during query
11:41:57 [DB2][ mforms managed]: HUD window returned with code: 3
11:41:57 [DB2][ mforms backend]: forgetting cached password for 'fuser'@'Mysql@IPADDRESS:6033'
11:41:57 [DB2][ GRTDispatcher]: Main thread waiting for background thread to finish
11:41:57 [DB2][ GRTDispatcher]: Background thread finished
11:41:57 [ERR][SQL Editor Form]: SQL editor could not be connected: Lost connection to MySQL server during query
11:41:57 [ERR][SQL Editor Form]: Your connection attempt failed for user 'fuser' to the MySQL server at IPADDRESS:6033:
Lost connection to MySQL server during query
Please:
1 Check that MySQL is running on address IPADDRESS
2 Check that MySQL is reachable on port 6033 (note: 3306 is the default, but this can be changed)
3 Check the user fuser has rights to connect to IPADDRESS 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 IPADDRESS connecting from the host address you're connecting from
11:41:57 [DB1][ mforms managed]: Showing an error to the user
11:41:57 [DB1][ mforms managed]: Hiding the wait message
11:41:57 [DB2][ mforms managed]: Wait message was not visible, nothing to do
11:41:57 [DB1][ mforms managed]: About to show a custom message box
11:41:57 [DB1][ mforms managed]: Creating and showing custom message box
11:41:57 [DB1][ mforms managed]: Running custom message box
11:41:58 [DB1][ mforms managed]: Custom message box closed
11:41:58 [DB2][ grt]: wb.form.showQueryConnectDialog finished in 3.96s
Any help would be greatly appreciated.