I want to access mysql on my linode from my local computer. I don't want just anyone to access my mysql server from anywhere.
I used putty to set up port forwarding to forward my local port 3306 to my remote host port 3306, but when I try to connect to mysql I get 'connection refused' in the putty log. The mysql connect error is 'Lost connection to mysql server during query'
This is my putty event log
Code:
2009-07-06 12:18:16 Looking up host "74.207.227.156"
2009-07-06 12:18:16 Connecting to 74.207.227.156 port 22
2009-07-06 12:18:17 Server version: SSH-2.0-OpenSSH_5.1p1 Debian-5
2009-07-06 12:18:17 We claim version: SSH-2.0-PuTTY_Release_0.59
2009-07-06 12:18:17 Using SSH protocol version 2
2009-07-06 12:18:18 Doing Diffie-Hellman group exchange
2009-07-06 12:18:20 Doing Diffie-Hellman key exchange with hash SHA-256
2009-07-06 12:18:21 Host key fingerprint is:
2009-07-06 12:18:21 ssh-rsa ####################
2009-07-06 12:18:21 Initialised AES-256 SDCTR client->server encryption
2009-07-06 12:18:21 Initialised HMAC-SHA1 client->server MAC algorithm
2009-07-06 12:18:21 Initialised AES-256 SDCTR server->client encryption
2009-07-06 12:18:21 Initialised HMAC-SHA1 server->client MAC algorithm
2009-07-06 12:18:32 Sent password
2009-07-06 12:18:33 Access granted
2009-07-06 12:18:35 Opened channel for session
2009-07-06 12:18:35 Local port 3306 forwarding to 74.207.227.156:3306
2009-07-06 12:18:36 Allocated pty (ospeed 38400bps, ispeed 38400bps)
2009-07-06 12:18:37 Started a shell/command
2009-07-06 12:18:49 Opening forwarded connection to 74.207.227.156:3306
2009-07-06 12:18:49 Forwarded connection refused by server: Connect failed [Connection refused]