switchsky

Results 3 comments of switchsky

数据库有连接成功吗,建表语句写了吗

查看不了可能是得在网页上运行才能查看,我一开始用Myeclipse运行的 也是查看不了 然后用MySQL8的话整个导入的包都得改 import java.sql.Connection; 以及连接的语句得改成这样就行了 String dbURL = "jdbc:mysql://localhost:3306/studentinfomanagement?useSSL=false&serverTimezone=UTC&allowPublicKeyRetrieval=true&useUnicode=true&characterEncoding=UTF8"; Class.forName("com.mysql.cj.jdbc.Driver"); 因为8的版本和之前有很大不同