T
tobleron
Hi all,
I have code (I'm not show the whole code here):
String url = "jdbc:mysql://localhost:3306/dicom?
jdbcCompliantTruncation=false";
Connection con;
con = DriverManager.getConnection(url, "root", "secret");
The code is run well. Also when I change to this :
String url = "jdbc:mysql://127.0.0.1:3306/dicom?
jdbcCompliantTruncation=false";
Connection con;
con = DriverManager.getConnection(url, "root", "secret");
It can run well. But when i used IP like this :
String url = "jdbc:mysql://140.135.100.180:3306/dicom?
jdbcCompliantTruncation=false";
Connection con;
con = DriverManager.getConnection(url, "root", "secret");
It can not works. FYI, there is no other part is changed, apache,
phpmyadmin, etc run well. Only the JDBC can not work with IP. Is there
any idea how to solve this problem ?
I have code (I'm not show the whole code here):
String url = "jdbc:mysql://localhost:3306/dicom?
jdbcCompliantTruncation=false";
Connection con;
con = DriverManager.getConnection(url, "root", "secret");
The code is run well. Also when I change to this :
String url = "jdbc:mysql://127.0.0.1:3306/dicom?
jdbcCompliantTruncation=false";
Connection con;
con = DriverManager.getConnection(url, "root", "secret");
It can run well. But when i used IP like this :
String url = "jdbc:mysql://140.135.100.180:3306/dicom?
jdbcCompliantTruncation=false";
Connection con;
con = DriverManager.getConnection(url, "root", "secret");
It can not works. FYI, there is no other part is changed, apache,
phpmyadmin, etc run well. Only the JDBC can not work with IP. Is there
any idea how to solve this problem ?