I can connect to MySQL if the code is:
conn = DriverManager.getConnection(
"jdbc:mysql://localhost/db","root", "test");
but as soon as I change it to one of these (first is my IP Address)
conn = DriverManager.getConnection(
"jdbc:mysql://82.41.85.161/db","root", "test");
conn = DriverManager.getConnection(
"jdbc:mysql://127.0.01/db","root", "test");
It takes a while for something to happen, and all that does happen is a lack of connection.
SQLException: Communications link failure
I've tried changing the bind address in the CNF file and putting a "#" in front of it but nothing happens. I'm currently working purely in "MySQLWorkbench" and the end goal here is to actually connect from another computer to this database. Any help would be much appreciated.