Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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.

share|improve this question
add comment

migrated from stackoverflow.com Jul 9 '11 at 5:18

This question came from our site for professional and enthusiast programmers.

1 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
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.