Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package msi;
- import java.sql.*;
- public class MSI {
- public static void main(String[] args){
- Connection con = null;
- String userName = "ak_user2";
- String pass = "wertyu";
- String url = "jdbc:mysql://212.182.24.236/ak_db2";
- try {
- Class.forName ("com.mysql.jdbc.Driver");
- con=DriverManager.getConnection(url,userName,pass);
- System.out.println("Udalo sie");
- } catch (SQLException | ClassNotFoundException ex) {
- System.out.print(ex);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement