Solution of java + mysql Chinese problem

xiaoxiao2021-03-06  41

First of all, the database driver wants to choose com.mysql.jdbc.driver (org.gjt.mm.mysql.driver is invalid)

Secondly, connect URL "JDBC: mysql: // localhost: 3306 / test? Useunicode = true & characterencoding = GB2312"

Pay attention to the passing parameters, ISO is also available -> GB2312

转载请注明原文地址:https://www.9cbs.com/read-116972.html

New Post(0)