时间:2021-07-01 10:21:17 帮助过:21人阅读
IDEA程序代码中需要访问mysql,出现
java.sql.SQLException: No suitable driver found for jdbc://mysql://hadoop001:3306/ruoze_g6
有可能是驱动没加进来,有可能是连接地址url写错了。
需要在pom中加上mysql驱动:
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>5.1.28</version>
</dependency>
【异常】java.sql.SQLException: No suitable driver found for jdbc://mysql://hadoop001:3306/xxx
标签:dep xxx 程序代码 url hadoop lex version connector suitable