Mysql – thesql workbench behind proxy

MySQLPROXY

How can I connect to a database server using MySQL workbench while behind a proxy? There seems to be no setting in the workbench UI to do this.

Best Answer

Try socat (http://www.dest-unreach.org/socat/)

You can create a local file socket and connect it through a proxy (HTTP or SOCKS4/4A). Something like:

socat UNIX-LISTEN:/tmp/mysql-proxy-socket,fork \ 
  SOCKS4:socks.example.com:mysql.example.com:3308

or

socat UNIX-LISTEN:/tmp/mysql-proxy-socket,fork \
  PROXY:squid.example.com:mysql.example.com:3308,proxyport=8888,proxyauth=user:pass