@@ -0,0 +1,462 @@
+%0Apackage com.dbconnection;%0Aimport java.sql.*;%0A%0Apublic class DBInfo %7B%0AConnection conn = null;%0A%0A%0Apublic static Connection ConnectDb()%0A %7B%0Atry%7BClass.forName(%22com.mysql.jdbc.Driver%22);%0A        Connection conn =DriverManager.getConnection(%22jdbc:mysql://localhost:3306/crudfx%22, %22root%22, %22%22);%0A         System.out.println(%22Connected%22);%0A        return conn;%0A%7Dcatch (Exception e) %7B%0A            System.err.println(%22Cannot Establish DB Connection%22);%0Areturn null;%0A    %7D%0A    %7D%0A%7D%0A

Create DBInfo.java