Exception in connection with mysql through jdbc

后端 未结 3 1394
滥情空心
滥情空心 2020-12-02 01:37

I got exception when i have tried to connect with mysql through jdbc.This type of question is already asked but i didn\'t get solution for my problem, here is my code...

3条回答
  •  温柔的废话
    2020-12-02 02:13

    I would try to play around the char encoding sets, for instance you can try to use the following url

    String url="jdbc:mysql://localhost:3306/student?autoReconnect=true&useSSL=false&characterEncoding=utf8&useUnicode=true";
    

提交回复
热议问题