1. Download the jar Package
Visit URL http://www.mysql.com/
Click Downloads,
Select Community (GPL) Downloads
Find MySQL Connectors
Select connector/j go to the download page for JDBC. Select the desired format click "Download" to jump to a page showing the need to login to the login button below the "No Thanks, just start my download." Skip login and start the download directly. You can see the content in the download when you are finished.
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M01/7E/DE/wKiom1cLPk3Q_TJtAAFSwjGJdO8170.png "title=" screen shot 2016-04-11 14.02.37.png "width=" "height=" 235 "border=" 0 "hspace=" 0 "vspace=" 0 "style=" width:500px;height:235px; " alt= "Wkiom1clpk3q_tjtaafswjgjdo8170.png"/>
Double-click the download to extract the compressed package can see the jar file is the package we need docs is the relevant document, SRC is the source code.
2. Import Jar Package
Select the above Mysql-connector-java-5.1.38-bin.jar package to copy to the Web-inf/lib directory of the project in Eclipse.
650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M00/7E/DB/wKioL1cLQErT_gapAAB2Kn63aDI702.png "title=" screen shot 2016-04-11 14.08.01.png "width=" height= "207" border= "0" hspace= "0" vspace= "0" style= "WIDTH:300PX;HEIGHT:207PX;" alt= "Wkiol1clqert_gapaab2kn63adi702.png"/>
Then, on the project Jsptest, right-click on "Build path > Configure build Path" and select "Libraries", click "Add JARs" and select the jar package you just pasted now under Project Java The "Libraries" in resources has the necessary jar packages.
650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M01/7E/DE/wKiom1cLQTrzcy9OAACx5n5LEdM921.png "title=" screen shot 2016-04-11 14.15.42.png "width=" height= "326" border= "0" hspace= "0" vspace= "0" style= "WIDTH:300PX;HEIGHT:326PX;" alt= "Wkiom1clqtrzcy9oaacx5n5ledm921.png"/>
JDBC programming is now possible.
This article from "Woody Rose" blog, reproduced please contact the author!
Eclipse readiness for JDBC Programming-download and import jar packages