(Detailed) connecting to the MySQL database using JDBC in JAVA (2)-MySQL ors ORS and jdbcconnectors

Source: Internet
Author: User

(Detailed) connecting to the MySQL database using JDBC in JAVA (2)-MySQL ors ORS and jdbcconnectors

You are welcome to reprint it in any form, but be sure to indicate the source.

1. What is the use of mysql connectors when downloading and installing mysql?

Mysql ors ORs is a driver used to connect to mysql using different client programs, such as odbc, c ++, And. net.

Here we use java to connect to mysql, so we need to download the corresponding driver.Connector/J

: Https://dev.mysql.com/downloads/connector/j/

 

2. decompress the compressed package after the download. Open Eclipse and right-click your project to open the configuration, as shown in

You can also click Add External Archives to Add a jar package.

3. Introduce the compressed jar package

 

 

 

4. added successfully.

 

5. Now you can write the code.

Series of articles

(Detailed) connecting to the MySQL database using JDBC in JAVA (3)-Code Section

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.