14 lines
461 B
Java
14 lines
461 B
Java
|
import java.sql.Connection;
|
||
|
import java.sql.DriverManager;
|
||
|
import java.sql.SQLException;
|
||
|
|
||
|
public class ConexionBD {
|
||
|
private static final String URL = "jdbc:mysql://db4free.net:3306/basecursos";
|
||
|
private static final String USERNAME = "edgarivanjc";
|
||
|
private static final String PASSWORD = "edgarivanJC12";
|
||
|
|
||
|
public static Connection getConnection() throws SQLException {
|
||
|
return DriverManager.getConnection(URL, USERNAME, PASSWORD);
|
||
|
}
|
||
|
}
|