I am attempting to use MySQL Workbench to tunnel into the server and connect to the db. Here is a mock setup mirroring what I have:
Code:
SSH Hostname example.com:2220
SSH Username: myuser
(supplying password)
MySQL Hostname: 127.0.0.1
MySQL Server Port: 3306
Username: root
(supplying password)
I have verified that SSH is reachable on port 2220, and that the hostname bind for MySQL is indeed 127.0.0.1. The MySQL server port is 3306 according to my.cnf. I get the error:
Code:
Failed to Connect to MySQL at 127.0.0.1:3306 through SSH tunnel example.com:2222 with user root
Lost connection to MySQL server at 'reading initial communication packet', system error: 0
The MySQL server is shut off to the outside world (port 3306 closed and using 127.0.0.1 as bind address), but Workbench should tunnel me in through SSH, and access it locally, right? Using local apps (i.e.: phpMyAdmin) works fine. I'm on Ubuntu 10.04 LTS and have tried the Linux and OS X Workbench clients. Any ideas?