I Cannot connect to remote MySQL database using SSH tunnel

Posted by Scott on Server Fault See other posts from Server Fault or by Scott
Published on 2012-10-19T01:23:57Z Indexed on 2012/10/19 5:06 UTC
Read the original article Hit count: 139

Filed under:
|
|

Brand new server, brand new MySQL 5.5 install on Ubuntu 12.04.

I can log in to the database as root from the command line. I can log on via Navicat MySQL or Sequel Pro as root on port 3306 from my Mac. I cannot log in using an SSH tunnel to the server and then to the database as root. I have tried both localhost and 127.0.0.1 as server for the local connection part. My password is fine. root is currently defined at %, 127.0.0.1, and localhost. I have set up this same type of connection at least 30 times before and never had a problem. The SSH connection gets made with no problem, and then it just hangs trying to connect to the DB and finally times out.

The only thing I changed in my.cnf was to comment out the bind-address = 127.0.0.1 line.

Any help? Any Ideas?

© Server Fault or respective owner

Related posts about ubuntu

Related posts about mysql