Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package week4;
- import java.sql.Connection;
- import java.sql.DriverManager;
- import java.sql.SQLException;
- public class Test {
- public static void main(String[] args) {
- try(Connection c = DriverManager.getConnection("jdbc:mysql://localhost:3306/itb", "root", "Pass$$")){
- System.out.println("Success!");
- }catch(SQLException e) {
- e.printStackTrace();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement