EclipseTips: HowToConfigureMySqlInEclipse_MySQL

Source: Internet
Author: User
EclipseTips: HowToConfigureMySqlInEclipse This tutorial explains the step-by-step guide for locating the database connection within your Eclipse environment. it is one of the advantages for the developer to check the database operations within Eclipse itself instead of checking with external tool. however, this wocould not have the advanced database operations, but will be handy for checking the updated status of the database. this example demonstrates the MySQL database to be added in Eclipse, however the same steps will be applicable to other database. before you install the database, you have to download the driver JAR file in your system.

1. Open Data Source Explorer in Eclipse

OpenWindow-> Show View-> Date Source EXplorer

When you open the window, it wowould look like this below screenshot.

2. Create New Connection

Right click on the above database option and select "New" for creating the new connection from the database. this below wizard shows the list of databases it supports, here we select the MySQL for our example.

3. MySQL Driver

The below wizards helps you to configure the MySQL driver package and the connection details. this wizard shows the empty list, you have to click on the icon just beside the field "Drivers" which open the new dialog to add the MySQL drivers from your system. if you already have it configured, the field "Drivers" wocould list the driver names.

Select the MySQL version to be configured.

If you don't have the JAR files added, please add it manually by clicking on the "Add Jar/Zip" button.

Look at the below screenshot, the MYSQL driver is successfully configured and shown in the list. this wizard also helps you to test the connection. if you click on the button "Test Connection", it will test the connection with database.

4. MySQL Data Source Configured in Eclipse

That's it !. You have configured the database right within your Eclipse project. You can view the data by clicking on the options provided.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.