Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private Connection getConnection() {
- try {
- con = DriverManager.getConnection(
- "jdbc:mysql://localhost:3306/skolan",
- "root",
- "");
- return con;
- } catch (SQLException ex) {
- System.out.println(DAOFoodMySQL.class.getName() + ex.getMessage());
- return null;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement