Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.sql.*;
- public class ConnectionMySQL {
- public static void main(String[] args)
- {
- try {
- Connection conn=DriverManager.getConnection("jdbc:mysql://127.0.0.1:3306/?user=root", "root", "dedee");
- System.out.println("connessione avvenuta.");
- }catch(Exception e)
- {
- System.err.println(e);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement