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
same problem. i've just commented the line with skip-networking in mysql config file, and the problem dissapeared
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:
host
and server
defined in the JS object, in which case node.js might give precedence to server
.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.Verify that having both server
and host
set will not cause this problem.