Know Java?? Used Eclipse?? Bored with Database command
interface?? Want to access database from Eclipse?? Then this post is for you...
We can access database from the Eclipse IDE itself
whenever you want to check some database tables in the middle of a Java or PHP
project. So, life becomes easier when you can do everything related to a
project in a single tool.
To configure Database access in Eclipse IDE, first we need
to open the Database Development perspective. In the Data Source Explorer, you
can add a database connection by right-clicking on Database Connection >
New.
The list of all the DBMS will be listed in the next wizard
as shown below.
Click on the new Driver definition button as indicated in
the below figure.
Specify the Driver type > JAR file > Username,
Password and Other Database Server details.
You can Test the connection by clicking on the Test Connection Button available in the below wizard. If ping gets succeeded, then click on Next.
Verify whether all the details are correctly filled in and
click on Finish.
The database development perspective in general has Data
Source Emplorer, SQL Results, Execution Plan and Bookmarks Views.
The Schemas, Users and Roles on a connected database
management system can be viewed in the same Data Source Explorer view.
The SQL Scrapbook can be used to type in SQL commands in
Eclipse. You can execute a command by right-clicking on it and selecting the
relevant Execute option. Also you can get suggestions as you type in a SQL command in
the SQL scrapbook provided by Eclipse.
You can also use SQL Query Builder which is very similar to
that of the SQL Scrapbook.
Related Articles:
Access Database from Netbeans IDE
Access Database from Netbeans IDE
Hi, Great.. Tutorial is just awesome..It is really helpful for a newbie like me.. I am a regular follower of your blog. Really very informative post you shared here. Kindly keep blogging. If anyone wants to become a Java developer learn from Java Training in Chennai
ReplyDelete