[SOLVED]How to connect database mysql via Lan
I am creating an application that need to connect to a database server via Lan network .
i am using mysql Wampserver 2.0 phpmyadmin as the database server.
and i am using this code to connect but i can't connect.
Can someone help me and tell me why the code does not work.
String ip = "192.168.24.8";
String port = "3306";
String name = "database_name";
String user = "root";
String pass = "";
String connection_string = "jdbc:mysql://"+ip+":"+port+"/"+name;
con = DriverManager.getConnection(connection_string,user, pass);
also can i use the phpmyadmin to connect via Lan.
i hope someone tell me some advices how to create database connections via lan