Advertisement
Guest User

Untitled

a guest
Sep 18th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. package trabalho;
  2.  
  3. import java.sql.Connection;
  4. import java.sql.DriverManager;
  5. import java.sql.SQLException;
  6.  
  7.  
  8. public class mySQLteste {
  9.  
  10. public static void main(String[] args){
  11.  
  12. Connection con;
  13. try {
  14. con = DriverManager.getConnection("jdbc:mysql:localhost/phpmyadmin");
  15. } catch (SQLException e1) {
  16. // TODO Auto-generated catch block
  17. e1.printStackTrace();
  18. }
  19.  
  20.  
  21. }
  22.  
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement