MySQL Can Connect Remotely but not Locally

后端 未结 8 1499
迷失自我
迷失自我 2021-01-19 20:29

This is a weird problem and I\'m not sure what\'s going on. I installed MySQL on a linux box I have running Ubuntu 10.04 LTS. I can access mysql via SSH mysql -p

相关标签:
8条回答
  • 2021-01-19 21:09

    same problem. i've just commented the line with skip-networking in mysql config file, and the problem dissapeared

    0 讨论(0)
  • 2021-01-19 21:13

    Connection Refused is being signaled at the TCP/IP protocol level, and means that your local connection attempt is using the wrong hostname and/or (more likely) port number.

    EDIT: Here's another (admittedly low-probability) possibility:

    1. You have both host and server defined in the JS object, in which case node.js might give precedence to server.
    2. If the externalIPaddress is on the other side of a NAT firewall, the firewall may be (actually, should be) configured to discard incoming traffic to port 3306.
    3. When you try to connect, your packets are being routed to the NAT firewall first and are being discarded there.

    Verify that having both server and host set will not cause this problem.

    0 讨论(0)
提交回复
热议问题