Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package trabalho;
- import java.sql.Connection;
- import java.sql.DriverManager;
- import java.sql.SQLException;
- public class mySQLteste {
- public static void main(String[] args){
- Connection con;
- try {
- con = DriverManager.getConnection("jdbc:mysql:localhost/phpmyadmin");
- } catch (SQLException e1) {
- // TODO Auto-generated catch block
- e1.printStackTrace();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement