(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