Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Conexion_BD {
- Connection connection = null;
- public void conectar() throws ClassNotFoundException {
- try {
- connection = DriverManager.getConnection("jdbc:mysql://localhost:3306/archivo", "root", "");
- } catch (SQLException e) {
- System.out.println("La Conexion a la Base de datos fallo.");
- e.printStackTrace();
- return;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement