In the past two days, students have conducted a JPA experiment to insert Chinese characters into the database. During the query, the database is garbled and the database is garbled. I posted a large number of questions.
The reason is that no encoding is selected during installation, so you can modify the encoding.
Find the installation directory, for example, C:/program files/MySQL Server 5.0, which is the default installation directory.
Find the my. ini file. Maybe your system hides the suffix, that is, find the file my.
Open my. ini and edit it. Find "default-character-set = Latin1", and change it to "default-character-set = GBK.
Restart the MySQL database service and create a garbled database table again.This step must be done. The modified configuration file is valid only when it is restarted.
Li xucheng csdn blog:Http://blog.csdn.net/javaeeteacher
Csdn student base camp:Http://student.csdn.net/space.php? Uid = 1, 124362
If you like myArticleAdd me as a friend:Http://student.csdn.net/invite.php? U= 124362 & C = 7be8ba2b6f3b6cc5