Open Eclipse1. Right-click the project to import the jar package, click Properties
2. Choose Java build path on the left and select libraries on the right.
3. Select Add External jars
4. Select the jar package according to the path
OK, it's okay.
Java connection to MySQL's latest driver package
Http://www.mysql.com/downloads/connector/j
1. Put the mouse on the root directory you built. Right-click and select Properties at the bottom.
2. Then choose Java Build Path on the left, select libraries on the right, select the path of the jar package by selecting the Add External jars on the right, and click OK.
3. After the installation, the figure below appears the package you want to add.
Most of the above content is organized from the network, thanks to the selfless dedication of ape apes ~ ~ Concrete steps, strong Internet are relatively easy to query, here no longer repeat
JDBC Connection (MYSQL) database steps, as well as query, insert, delete, UPDATE, etc. 11 functions to process database information