i'm using jdbc to connect MySql from java and using Apache server.
Class.forName("org.gjt.mm.mysql.Driver");
con = DriverManager.getConnection(
"jdbc:mysql://localhost:3306/" + Db, dbuser, dbpasswd);
stmt = con.createStatement();
i can even access it with 127.0.0.1 either
everything went well until i tried to connect it in java with my own LAN IP Address.
My LAN IP : 192.168.0.12
so i want to able to access it like this
Class.forName("org.gjt.mm.mysql.Driver");
con = DriverManager.getConnection(
"jdbc:mysql://192.168.0.12:3306/" + Db, dbuser, dbpasswd);
stmt = con.createStatement();
however i can access it in browsers like this