Struggling to connect one droplet to another droplets database.

  • Posted February 5, 2014

I am trying to run a database on one droplet and connect my app on another droplet to it. Should be easy, I know.

Well the droplet that I want to run the db, I have just restored from a snapshot so it was just the Ubuntu 12.04 lamp image. Installed MariaDB. Made a database and imported my data. Commented out bind in my.cnf and made a user with all privileges.

Now I try to connect with mysql from the other droplet and I get 'ERROR 203…can’t connect to MySQL server.

Any ideas for a way forward?


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.

Have you restarted mysql? Also what happens if you telnet from the other droplet to the port MariaDB is listening on? If there is any firewall in play, have you punched a hole in it for the other droplet on the correct port? If you app connection to the correct port?