Untitled
/* * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Main.java to edit this template */ package gestion.client; import java.sql.*; import java.util.logging.Level; import java.util.logging.Logger; /** * * @author lenovo */ public class GestionClient { /** * @param args the command line arguments */ public static void main(String[] args) { try { Class.forName("com.mysql.jdbc.Driver"); Connection con=DriverManager.getConnection("jdbc:mysql://localhost:3306/gestion_client","root",""); } catch (ClassNotFoundException ex) { Logger.getLogger(GestionClient.class.getName()).log(Level.SEVERE, null, ex); } catch (SQLException ex) { Logger.getLogger(GestionClient.class.getName()).log(Level.SEVERE, null, ex); } } }
Leave a Comment