Report this

What is the reason for this report?

Cannot Connect To Private Network MySQL

Posted on August 30, 2018

2 droplets same data center, same project. Both droplets are behind the same firewall.

I am attempt to connect from Droplet 1 to MySQL on Droplet 2 however, I keep getting: “ERROR 2003 (HY000): Can’t connect to MySQL server on”

telnet xx.xxx.xx.xx 3306 Trying xx.xxx.xx.xx… telnet: Unable to connect to remote host: Connection refused

Telnet over port 22, 80, 443 is all fine. I can ping ok.

I have set my mysql.cnf file to bind over 0.0.0.0 I have set up a user with the @ % for the sake of debugging the connection issue, but still no luck. I restarted mysql I flushed the privileges.

netstat -tulnp | grep mysql tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN 23317/mysqld

What am I missing here?

Thank you!!

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.