banner image
Sedang Dalam Perbaikan

MYSQL Database connection in Java



Hey Guys! I think you have already followed my Java tutorial series. Now it's time to move for Database operations. Here exception handling is coming to the party!!!

Java provides a library to be imported to build up a connection with an existing database in our local machines. Let's move on..

Prerequisites :

JDK should be installed.
XAMMP or WAMP should be installed.
Netbeans is required.

Create a new JAVA project using Netbeans

Open Netbeans and go to File. Select add new project and create.




Import MYSQL JDBC Driver 

There's a sub folder in your project called Libraries. Right click on it and select import library option. Search for MYSQL JDBC Driver and click on it to import. The below demo will show you the way...

Powered by Blogger.