base de datos

This commit is contained in:
edgar.juarez 2024-03-19 18:25:59 -06:00
parent 12b85df405
commit 123ba1a5ca
2 changed files with 3 additions and 3 deletions

View File

@ -3,9 +3,9 @@ import java.sql.DriverManager;
import java.sql.SQLException; import java.sql.SQLException;
public class ConexionBD { public class ConexionBD {
private static final String URL = "jdbc:mysql://db4free.net:3306/basecursos"; private static final String URL = "jdbc:mysql://monorail.proxy.rlwy.net:56243/railway";
private static final String USERNAME = "edgarivanjc"; private static final String USERNAME = "root";
private static final String PASSWORD = "edgarivanJC12"; private static final String PASSWORD = "cGSzqwYoGdqChjMkGlKgdPYZXzzaujKT";
public static Connection getConnection() throws SQLException { public static Connection getConnection() throws SQLException {
return DriverManager.getConnection(URL, USERNAME, PASSWORD); return DriverManager.getConnection(URL, USERNAME, PASSWORD);