Question

Navicat and remote MySQL connection problems

  • Posted October 24, 2014

Having a rough time trying to connect to my droplet’s MySQL server through an external software called Navicat. here’s what I’ve done so far;

• adjusted my.cnf to be bound to 0.0.0.0 and checked through netstat that 0.0.0.0:3306 is listening • followed this tutorial to open up 3306 - https://www.digitalocean.com/community/tutorials/how-to-set-up-a-firewall-using-iptables-on-ubuntu-14-04

Still, when trying to connect, I get the following error (delivered very fast);

“CONNECTION FAILED - Server unexpectedly closed network connection”

I’m trying to use SSH credentials with my root MySQL username & password on the IP 162.243.75.66 and port 3306.

Can you point me in the right direction here?

Subscribe
Share

How are you trying to connect to it? If I run:

mysql -u root -h 162.243.75.66 -p

I’m presented with the password prompt.


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

In navicat I just setup the SSH settings with the same credentials I use for putty and in the General settings like I was in my localhost, thats it.

I’m trying to connect from the software package called Navicat, which isn’t a Command Line interface. It keeps denying me like crazy…pretty pissed about the whole thing!