将Java连接到MySQL数据库
你如何用Java连接到MySQL数据库?
当我尝试时,我明白了
java.sql.SQLException: No suitable driver found for jdbc:mysql://database/table at java.sql.DriverManager.getConnection(DriverManager.java:689) at java.sql.DriverManager.getConnection(DriverManager.java:247)
要么
java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
要么
java.lang.ClassNotFoundException: com.mysql.cj.jdbc.Driver
米琪卡哇伊