1 Download the corresponding corresponding driver package
- For example, the first one is the driver package for operating the database of MySQL version 5.1.47.
- The second is the driver package of MySQL8.0.20
- Go to the Internet to download the driver package corresponding to the database version
- Additional knowledge: A .jar file is a packaged and compressed file of a series of compiled class files. When other programs introduce this jar package, they will have all the classes of this package.
2 Import the driver package in the IDEA project
Find the location of the corresponding driver package
This sign appears, indicating that the driver package has been imported successfully
Manipulate database
- Then call the database through the code area in IDEA. For these specific manipulation statements, you can check out the articles in my JDBC area, or you can go to other tutorials.