Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
- */
- package moviehouserentalsystem;
- import java.sql.*;
- /**
- *
- * @author l22x08w29
- */
- public class Admin {
- private static final String USERNAME="root";
- private static final String PASSWORD="root";
- private static final String CONN_STRING="jdbc:mysql://localhost:3306/mysql?movie house rental";
- // jdbc:mysql://localhost:3306/mysql?movie house rental=convertToNull [root on Default schema]
- public static void main(String[] args){
- // TODO code application logic here
- Connection conn = null;
- try{
- conn = DriverManager.getConnection(CONN_STRING, USERNAME, PASSWORD);
- System.out.println("Connected");
- }catch(SQLException e){
- System.err.println(e);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement