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.

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

I uncommented:

bind-address            = 80.10.65.45 

I added 80.10.65.45 as a server in privilege

root    80.10.65.45     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 127.0.0.1:3306
debug1: Local forwarding listening on ::1 port 58517.
debug1: channel 0: new [port listener]
debug1: Local forwarding listening on 127.0.0.1 port 58517.
debug1: channel 1: new [port listener]
debug1: Entering interactive session.
debug1: Connection to port 58517 forwarding to 127.0.0.1 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 127.0.0.1 port 3306, connect from 127.0.0.1 port 58519, nchannels 3
share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

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

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

Your Answer

 
discard

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.