Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void koneksi() {
- try{
- Class.forName("com.mysql.jdbc.Driver");
- String url = "jdbc:mysql://localhost:3306/krwadriansya1ia10";
- koneksi = DriverManager.getConnection(url, "root", "");
- }catch(ClassNotFoundException |SQLException ex) {
- JOptionPane.showMessageDialog(rootPane, "Error Koneksi : \n"+ex, "Pesan", JOptionPane.ERROR_MESSAGE);
- System.exit(0);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement