Press "Enter" to skip to content

Connection code of library management system

What is database ?

A database is a collection of information that is organized so that it can be easily accessed, managed and updated. Computer databases typically contain aggregations of data records or files, containing information about sales transactions or interactions with specific customers.

To get help you can see the video.

Login page design…

Source code for loading page.

public class Connect {
Connection con = null;
public static Connection dbConnect(){
try{
Class.forName("com.mysql.jdbc.Driver");
Connection con = DriverManager.getConnection("jdbc:mysql://localhost/liabrary","root","");
return con;
}catch(Exception e){
JOptionPane.showMessageDialog(null, e);
return null;
}
}
}

Be First to Comment

Leave a Reply

Your email address will not be published. Required fields are marked *