页面调用登录失败,控制台报No suitable driver found for jdbc:mysql://localhost:3306/test?useUnicode=true&characterEncoding=UTF-8 org.hibernate.exception.JDBCConnectionException: Could not open connection,在action打印用户登录名为空
望大神帮忙解决
望大神帮忙解决
2016-10-17
解决办法:
下载MySQL的官方JDBC连接器mysql-connector-java-5.1.18-bin.jar
1、将mysql-connector-java-5.1.18-bin.jar放入下面目录中
E:\apache-jmeter-2.11\lib
C:\Program Files (x86)\Java\jdk1.6.0_21\jre\lib\ext\mysql-connector-java-5.0.8-bin.jar
C:\Program Files (x86)\Java\jdk1.6.0_21\jre\lib\mysql-connector-java-5.0.8-bin.jar
我这样解决了 把MYSQL的JDBC 放入这三个目录 搞了我一天
举报