Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static String bd = "merca_ruta";
- static String login = "root";
- static String password ="";
- static String url = "jdbc:mysql://localhost:/" + bd;
- Connection conn = null;
- if (conn != null) {
- System.out.println("Conenecting database [" + conn + "] OK");
- }
- } catch (SQLException e)
- {
- System.out.println("Exepcion conexion: " + e.getMessage());
- } catch (ClassNotFoundException e)
- {
- System.out.println("Excepcion driver: " + e.getMessage());
- }
- }
Add Comment
Please, Sign In to add comment