First, Create new Project named anything you want, for example Javasql by click File->New Project.
then you’ll be on this frame
then click next, then give Project Name and set Project Localtion
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.
Then choose MySQL JDBC Driver
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