Description:
The Workbench already has connectivity for "TCP/IP over SSH".
This allows one to connect to remote servers using TCP/IP. A workaround exists to be able to connect to remote servers using Unix Socket via some socket-port forwarding (see https://blog.mozilla.org/it/2013/06/18/mysql-workbench-with-unix-socket-only-servers/)
It would be really nice to have a feature that would allow a user to setup a "post ssh 'init'" commands, which happen post the ssh handshake, but pre-mysql connection attempt.
In this scenario, the connection would work similar to the below:
- SSH auth request
- SSH auth received, ssh connection established.
- "init" commands are executed by mysql workbench
- mysql auth connect request
- mysql auth received, mysql connection established.
It would allow the workaround described in the link above to be used without actually opening a separate ssh session to the server.
Thanks!
How to repeat:
Put ssh "init" commands in the connection parameters box of the connection configuration.
During connection, these commands are executed on the host server post ssh connect and pre-mysql connect.