How to config putty remote port forwarding to connect mysql?

Posted by kev on Super User See other posts from Super User or by kev
Published on 2012-11-12T09:26:06Z Indexed on 2012/11/12 11:06 UTC
Read the original article Hit count: 455

Filed under:
|
|
|

I installed MySQL to a Windows box. I want to connect it from a Linux box.
I run plink to setup a remote port forwarding in Windows box.
I try to connect it from Linux box, but it's not working.

Windows (192.168.1.101)

C:\> plink -v -N -R 3306:localhost:3306 [email protected] -pw ADMIN

Also tried putty with this config:

Port forwarding: R3306->localhost:3306

Linux (192.168.1.102)

$ mysql
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

$ nc localhost 3306
J
5.5.283V6L[fnu¦¦!¦$N>-c-R9bbG{mysql_native_password

© Super User or respective owner

Related posts about ssh

Related posts about mysql