当前位置:Gxlcms > 数据库问题 > JDBC连接数据库时候出错

JDBC连接数据库时候出错

时间:2021-07-01 10:21:17 帮助过:15人阅读

="jdbc:mysql://localhost:3306/db_1"; username="root"; password="123qwe";

改成:

        driver="com.mysql.jdbc.Driver";
        url="jdbc:mysql://localhost:3306/db_1?characterEncoding=UTF8&useSSL=false";
        username="root";
        password="123qwe";

这样就可以了~

JDBC连接数据库时候出错

标签:nts   cti   mysq   char   tab   pre   sts   war   cst   

人气教程排行