java.sql.SQLException: Unknown initial character set index '255' received from server for connector 8.0.11

后端 未结 14 1691
再見小時候
再見小時候 2021-02-14 22:13

While establishing the connection to a MySQL database, I\'m getting the following error

java.sql.SQLException: Unknown initial character set index \'255\' receiv         


        
14条回答
  •  盖世英雄少女心
    2021-02-14 22:46

    You can add ?characterEncoding=latin1" after your url String like this for e.g.:

    "jdbc:mysql://localhost/yourDB?characterEncoding=latin1";
    

    It might work.

提交回复
热议问题