Skip to main content

Featured

Game Development Tutorials In Android

Game Development Tutorials In Android Hi Guys,                 We are shortly started Game Development Tutorials in Android Studio. So everyone supports me and share this blogs to your friends. Guys, At this time everyone is freely available to source code and we are provide a video for step by step game developments. you are learn free and feel free to support us. Guys, if you have any question to me, so feel free to comment us. I will try to answer all the question as long as possible.                                                     Thank's                                                                          ...

Java Web Application Development | Experts In Java - BSCHANDEL - PART-20

Java Web Application Development | 
Experts In Java - BSCHANDEL - 
PART-20

Major Project 
Project Name : Library Management System

(LMS)

Databasecon.java


/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package connection;

import java.sql.Connection;
import java.sql.DriverManager;



/**
 *
 * @author CMC
 */
public class Databasecon
{
    private Connection con = null;


    public Connection getConnection()
    {
        try
        {
            Class.forName("com.mysql.jdbc.Driver");
            con = DriverManager.getConnection("jdbc:mysql://localhost:3306/LMS","root","sct2306");

        }
        catch(Exception ex)
        {
            System.err.println(ex.getMessage());
        }
        return con;
    }

}

Comments

Post a Comment