public static void main(String[] args) {
        try {
            MysqlDBService db = new MysqlDBService();
            Connection c = db.getConnection();
            Statement s = c.createStatement();
            String sql = "SELECT * from  category";

            ResultSet rs = s.executeQuery(sql);
            if (rs.next()) {
                System.out.println(rs.getString(1));
            }

        } catch (Exception e) {
            e.printStackTrace();
        }
    }