Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Database Connection Error?
- String url = "jdbc:mysql://DailyRoutine";
- try {
- Connection con = DriverManager.getConnection(url);
- } catch (SQLException ex) {
- Logger.getLogger(JavaApplication2.class.getName())
- .log(Level.SEVERE, null, ex);
- }
- String url = "jdbc:mysql://DailyRoutine";
- try {
- Class.forName("com.mysql.jdbc.Driver");
- Connection con = DriverManager.getConnection(url);
- } catch (SQLException ex) {
- Logger.getLogger(JavaApplication2.class.getName()).log(Level.SEVERE, null, ex);
- }
Add Comment
Please, Sign In to add comment