14 lines
483 B
Java
14 lines
483 B
Java
import java.sql.Connection;
|
|
import java.sql.DriverManager;
|
|
import java.sql.SQLException;
|
|
|
|
public class ConexionBD {
|
|
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";
|
|
|
|
public static Connection getConnection() throws SQLException {
|
|
return DriverManager.getConnection(URL, USERNAME, PASSWORD);
|
|
}
|
|
}
|