2024-03-04 14:47:47 +00:00
|
|
|
import java.sql.Connection;
|
|
|
|
import java.sql.DriverManager;
|
|
|
|
import java.sql.SQLException;
|
|
|
|
|
|
|
|
public class ConexionBD {
|
2024-03-20 00:25:59 +00:00
|
|
|
private static final String URL = "jdbc:mysql://monorail.proxy.rlwy.net:56243/railway";
|
|
|
|
private static final String USERNAME = "root";
|
|
|
|
private static final String PASSWORD = "cGSzqwYoGdqChjMkGlKgdPYZXzzaujKT";
|
2024-03-04 14:47:47 +00:00
|
|
|
|
|
|
|
public static Connection getConnection() throws SQLException {
|
|
|
|
return DriverManager.getConnection(URL, USERNAME, PASSWORD);
|
|
|
|
}
|
|
|
|
}
|