Wednesday, October 16, 2013

ADDING THE SUPPORTING FILES FOR JDBC CONNECTION TO THE PROJECT-IN NETBEANS ONLY


First, Create new Project named anything you want, for example Javasql by click File->New Project.
newProject
newProject
then you’ll be on this frame
javaapps
javaapps
then click next,  then give Project Name and set Project Localtion
nameProject
nameProject
then finish.
Second, you must have JDBC MySQL Driver before you can start to connect your Java program to database. But since we use Netbeans , this has been done. Just simply add the library to your project library. Right click in Library on the Project you use. addLibrary
Then choose MySQL JDBC Driver
addLib
Then Click Add Libary.
So now we can connect to MySQL database. 

THIS SHOULD BE DONE BEFORE EXECUTING THE JDBC CODINGS.NOW THE CONNECTION IS ESTABLISHED TO THE MY SQL DATABASE

No comments:

Post a Comment

Animated Social Gadget - Blogger And Wordpress Tips