mezontleTeam/ConexionBD.java

14 lines
461 B
Java
Raw Normal View History

2024-03-04 14:47:47 +00:00
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);
}
}