Article directory
Download driver
How to download the MySQL database driver file:
How to obtain the latest version of the MySQL driver . This hyperlink is a blog introducing the download.
To obtain the driver for MySQL versions other than the latest version , select Platform Independent and select the second zip package Xianzao
Import method
1. Create a lib folder under the project (just for easy operation, you can choose the address arbitrarily), put the driver file in it
2. Click File - Project Structure - Module in turn (that is, file - project structure - module)
3. Click as Click the plus sign above the image position, click to import the JAR package, and select the driver file in the lib directory
In the module interface, a package similar to mysql-connector-xxx.jar in the picture appears, check it, and apply it.
This is the end