Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- try {
- // RECUERDA: PARA EJECUTAR ESTE CÓDIGO ES NECESARIO TENER mYSQL
- // FUNCIONANDO Y LAS TABLAS Y USUARIOS CREADOS
- String url1 = "jdbc:mysql://localhost:3306/matricula";
- String user = "usuario";
- String password = "usuario" + "";
- conn1 = DriverManager.getConnection(url1, user, password);
- if (conn1 != null) {
- System.out.println("Conectado matrÃcula");
- }
- } catch (SQLException ex) {
- System.out
- .println("ERROR:La dirección no es válida o el usuario y clave");
- ex.printStackTrace();
- }
- }
Add Comment
Please, Sign In to add comment