In the Web project, the latest MySQL driver download and configuration

In the Web project, the latest MySQL driver download and configuration


In our web service development, we need to use the MySQL driver for database operations.

Here is how to download and configure the driver.

Driver package download

Download on the official website, address: https://dev.mysql.com/downloads/connector/j/

The selected version is as follows:

[External link image transfer failed. The source site may have an anti-leech link mechanism. It is recommended to save the image and upload it directly (img-4Lj7IDOT-1611113375437)(evernotecid://6FE75482-54A0-433A-9625-A01F7FEE92EC/appyinxiangcom/9896050/ENResource /p3123)]

Configuration

After the download is complete, it is a compressed package.

  1. First unzip:

[External link image transfer failed. The source site may have an anti-leech link mechanism. It is recommended to save the image and upload it directly (img-GjJBIejD-1611113375440)(evernotecid://6FE75482-54A0-433A-9625-A01F7FEE92EC/appyinxiangcom/9896050/ENResource /p3124)]

Copy the mysql-connector-java-8.0.23.jar library.

  1. Copy to project directory

[External link image transfer failed. The source site may have an anti-leech link mechanism. It is recommended to save the image and upload it directly (img-Vc9j7k3L-1611113375441)(evernotecid://6FE75482-54A0-433A-9625-A01F7FEE92EC/appyinxiangcom/9896050/ENResource /p3125)]

  1. Add to lib directory

On mysql-connector-java-8.0.23.jar, right-click, and in the pop-up menu, add to the lib directory:

[External link image transfer failed. The source site may have an anti-leech link mechanism. It is recommended to save the image and upload it directly (img-wzvb8wnj-1611113375443)(evernotecid://6FE75482-54A0-433A-9625-A01F7FEE92EC/appyinxiangcom/9896050/ENResource /p3126)]

  1. carry out

After completion, the jar package will be displayed in the following directory:

Insert picture description here

Then you can use the MySQL driver in your code.


PS: For more more content..., please check --> "Server Development"
PS: More more content..., please check --> "Server Development"
PS: More more content..., please check --> "Server Development"

Guess you like

Origin blog.csdn.net/u011578734/article/details/112860985