Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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
share|improve this question

1 Answer 1

up vote 2 down vote accepted

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.

share|improve this answer
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 posting your answer, you agree to the privacy policy and terms of service.

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