Myeclipse+mysql (i)

Source: Internet
Author: User

MyEclipse connecting MySQL Database

Preparation: MyEclipse is using version 2013, MySQL Ver 14.14 distrib 5.6.28

Download of 1.jar packages (JDBC driver)

I downloaded: Mysql-connector-java-5.1.7-bin.jar

2. Open myeclipse----> select window----> select Open perspecctive---->myeclipse Database Explorer will enter the following interface.

On the right side of the DB browser working interval there is a downward triangle, such as the direction of the red arrow pointing, click the drop-down box appears.

Go to new Database connection Driver---->

Driver template----> select MySQL connector/j

Driver name----> pick one (e.g. user)

Connection URL---->jdbc:mysql://localhost:3306/fuck (this URL needs to be noted, because MySQL is accessing the database on this computer, so set the 3306 port of localhost, The "Fuck" is the name of the database that I created in the MySQL database, and if you haven't built it yet, you should first set up a database and proceed to the next step. Otherwise, an error will occur. )

Continue above:

Username---->root (can be taken as long as you can remember)

Password---->************* (don't say much)

ADD JARS----> select the first step to download the saved JAR file path---->test Driver----> If successful, the following interface will appear---->OK---->finish

When you return to the DB browser page, a directory named user "Driver name" will be given.

Right-click on user and click Open Connection to see the list of all libraries in the MySQL database.

Myeclipse+mysql (i)

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.