I'm trying to access my remote mysql server from my own computer.

I uncommented:

bind-address            = 

I added as a server in privilege

root     yes     ALL PRIVILEGES  yes

I'm using Sequel Pro on MacosX to connect via SSH

here is the debug log:

debug1: Authentication succeeded (password).
debug1: Local connections to LOCALHOST:58517 forwarded to remote address
debug1: Local forwarding listening on ::1 port 58517.
debug1: channel 0: new [port listener]
debug1: Local forwarding listening on port 58517.
debug1: channel 1: new [port listener]
debug1: Entering interactive session.
debug1: Connection to port 58517 forwarding to port 3306 requested.
debug1: channel 2: new [direct-tcpip]
channel 2: open failed: connect failed: Connection refused
debug1: channel 2: free: direct-tcpip: listening port 58517 for port 3306, connect from port 58519, nchannels 3

I suspect that the problem is that the server is listening on but as you have ssh tunneled to the server it will be trying to connect to the server on which isn't being listened on. If you change it to bind-address = it will listen on all the interfaces, which should fix it.

  • 1
    If you are using SSH, you may not need for the MySQL server to bind on the public IP address. – sciurus Mar 20 '11 at 23:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.