Analysis of garbled data inserted into MySQL database

Source: Internet
Author: User
Tags mysql version

(1) The first case when creating a new database

(2) The second case is that the configuration encoding in the IDE environment is set to UTF-8

(3) The third case is when the database is connected, no encoding is set. This is the most conventional. This looks easy to solve, but you need to be aware of the MySQL version of the issue, such as the 5.6 version of the link URL setting code suffix may be:

?useoldaliasmetadatabehavior=true&useunicode=true&charsetencode=utf8&usessl=false; and previous versions are:
? useunicode=true&characterencoding=utf-8.
If this negligence is mistaken, the subconscious must feel that they have set the encoding format, resulting in the problem can not be found!
The above problem is not resolved, there are problems, we recommend reloading MySQL

Analysis of garbled data inserted into MySQL database

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.