Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- try {
- Class.forName("com.mysql.jdbc.Driver");
- System.out.println("Connection sucessfull");
- }
- catch (ClassNotFoundException cnfe) {
- System.out.println("Connection failed " + cnfe);
- }
- String url = "jdbc:mysql://moderam.home.pl";
- try {
- DBConnection = DriverManager.getConnection(url, "13485949_okno", "hreniu230");
- System.out.println("Database Connected");
- }
- catch (SQLException se){
- System.out.println("No Database " + se);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement