Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
- */
- package conexao;
- import java.sql.*;
- /**
- *
- * @author jonathan.153417
- */
- public class Conexao {
- /**
- * @param args the command line arguments
- */
- private static final String USER = "root";
- private static final String PSW = "";
- private static final String CON = "jdbc:mysql://localhost/teste";
- public static void main(String[] args) throws SQLException {
- // TODO code application logic here
- Connection connection = DriverManager.getConnection(CON,USER,PSW);
- System.out.println("Conectou!!");
- connection.close();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement