首先,下载好mysql的驱动

下载地址:https://dev.mysql.com/downloads/connector/j/

解压,我们需要.jar文件

然后,打开IDEA,File -> Project Structure -> Modules -> Dependencies -> 点击右边绿色的‘+’
Intellij IDEA载入JDBC驱动,连接Mysql
选第一个JARs of directories,找到你刚刚解压的位置,选中文件mysql-connector-java-5.1.7-bin.jar
-> 点OK

最后回到项目中,Extermal Libraries,会发现多了一个包 ,这样就说明成功加载了jdbc驱动。
Intellij IDEA载入JDBC驱动,连接Mysql

相关文章:

  • 2021-06-19
  • 2021-07-06
  • 2021-07-11
  • 2021-05-10
  • 2021-11-30
  • 2022-12-23
  • 2021-05-12
  • 2022-12-23
猜你喜欢
  • 2021-06-24
  • 2022-12-23
  • 2022-01-29
  • 2021-12-06
  • 2022-01-21
  • 2021-04-28
  • 2021-08-24
相关资源
相似解决方案