I am trying to connect to MySQL database using Java using the code:
try{
Class.forName("com.mysql.jdbc.Driver");
return DriverManager.getConnection("jdbc:mysql://localhost/bd_Test","root", "root");
}catch(ClassNotFoundException e) {
throw new SQLException(e.getMessage());
}
However, I want this connection to be made without being over localhost. Is there any way for this?
I want the connection isn't localhost, because the objective is to create an installer application and that later can be accessed by other computers.
Thank you all for reply