Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Connection con = null;
- String url = "jdbc:mysql://localhost/Unity";
- String user = "root";
- String password = "root";
- public void CONNECT() {
- try {
- Class.forName("com.mysql.jdbc.Driver");
- con = DriverManager.getConnection(url, user, password);
- } catch (Exception ex) {
- System.out.println("Not working");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement