Advertisement
Guest User

Untitled

a guest
Dec 14th, 2019
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.39 KB | None | 0 0
  1.  private Connection getConnection() {
  2.         try {
  3.             con = DriverManager.getConnection(
  4.                     "jdbc:mysql://localhost:3306/skolan",
  5.                     "root",
  6.                     "");
  7.             return con;
  8.         } catch (SQLException ex) {
  9.             System.out.println(DAOFoodMySQL.class.getName() + ex.getMessage());
  10.             return null;
  11.         }
  12.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement