Unknown initial character set index '255' received from server. Initial client character set can be

在連接mysql數據庫是經常會出現一些莫名其妙的錯誤,截圖如下: 如果是這樣的錯誤那麼你不用慌這是SQL轉碼出現了錯誤,在數據庫的URL這塊加上「?characterEncoding=utf8&useSSL=false&useUnicode=true」這句問題就解決了。完整的句式如下:(J2EE處寫你的數據庫名稱) String url="jdbc:mysql://localhost:3306/J
相關文章
相關標籤/搜索