无法在127.0.0.1:3306

时间:2019-09-24 08:25:05

标签: mysql-workbench ubuntu-14.04 portforwarding ssh-tunnel tunnel

我在Windows上使用Putty打开ssh隧道,将端口3306设置为从外部网络远程连接到Ubuntu 14.04操作系统上的MySql服务器数据库。 而且我仅在端口3306上收到以下错误:

Failed to add client-to-server port forwarding rule on 127.0.0.1:3306: Address is already in use; bind () in ListeningSocket :: StartListening () failed: Windows error 10013: Attempting to access the socket in ways not allowed by the respective access authorizations.

使用其他端口...例如5900和2222,隧道可以正常工作,我不明白为什么会收到错误消息,因为我也执行了命令来检查Ubuntu上的端口

sudo lsof -i: 3306

这对我来说是

COMMAND  PID   USER   FD   TYPE  DEVICE  SIZE/OFF  NODE NAME

mysql    8637  mysql  10u  IPv4  37615     0t0     TPC  *: mysql (LISTEN)

要使端口3306上的隧道对我有用,我需要更改什么?预先感谢

1 个答案:

答案 0 :(得分:0)

我也有

xcrun simctl list | grep Booted

我使用了bitvise,并试图进行远程端口转发。正如@IISanto指出的那样。通过在启动Windows的计算机上禁用IPv6协议来解决此问题。在以下情况下效果良好:

Client-to-server PF config in bitvise