Struggling to connect one droplet to another droplets database.

February 5, 2014 2.1k views
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?
1 Answer
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?
Have another answer? Share your knowledge.