Guest User

Untitled

a guest
Aug 9th, 2018
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. Database Connection Error?
  2. String url = "jdbc:mysql://DailyRoutine";
  3. try {
  4. Connection con = DriverManager.getConnection(url);
  5. } catch (SQLException ex) {
  6. Logger.getLogger(JavaApplication2.class.getName())
  7. .log(Level.SEVERE, null, ex);
  8. }
  9.  
  10. String url = "jdbc:mysql://DailyRoutine";
  11. try {
  12. Class.forName("com.mysql.jdbc.Driver");
  13. Connection con = DriverManager.getConnection(url);
  14. } catch (SQLException ex) {
  15. Logger.getLogger(JavaApplication2.class.getName()).log(Level.SEVERE, null, ex);
  16. }
Add Comment
Please, Sign In to add comment