(做了5天了,求求高手了)无法创建下列URL的连接: jdbc:mysql://localhost:3306/decor?user=root&password=root&useUnicode=true&charac,该怎么解决

(做了5天了,求求高手了)无法创建下列URL的连接: jdbc:mysql://localhost:3306/decor?user=root&password=root&useUnicode=true&charac,该怎么解决

(做了5天了,求求高手了)无法创建下列URL的连接: jdbc:mysql://localhost:3306/decor?user=root&password=root&useUnicode=true&charac

控制台输出程序:

成功注册JDBC驱动程序org.gjt.mm.mysql.Driver

******   url=jdbc:mysql://localhost:3306/decor?user=root&password=root&useUnicode=true&characterEncoding=gb2312

成功创建连接池mysql

错误代码:

无法创建下列URL的连接:   jdbc:mysql://localhost:3306/decor?user=root&password=root&useUnicode=true&characterEncoding=gb2312




org.gjt.mm.mysql.Driver这个是旧的驱动程序,新的应该是用com.mysql.Driver去连接.既然你的选择用新的数据库,相应的驱动也应该跟进才对啊,不能因为这样就说5.0是垃圾.

(做了5天了,求求高手了)无法创建下列URL的连接: jdbc:mysql://localhost:3306/decor?user=root&password=root&useUnicode=true&charac,该怎么解决

相关文章:

你感兴趣的文章:

标签云: