RDS in AWS modifies MySQL's encoding

Source: Internet
Author: User

Due to the creation of RDS, the default character set and the program are not matched, so it needs to be changed to UTF8

1. View MySQL current encoding settings

650) this.width=650; "src=" Https://s3.51cto.com/wyfs02/M00/8D/E0/wKioL1itpmKADxccAAAsCeAHq48332.png "title=" Default. png "alt=" Wkiol1itpmkadxccaaasceahq48332.png "/>

2. Creating an RDS parameter group in the RDS console

650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M01/8D/E2/wKiom1itprbQ8a2_AAAqsASoeyg606.png "title=" Create a. png "alt=" Wkiom1itprbq8a2_aaaqsasoeyg606.png "/>

3. Modifying the character Set

Edit the parameter group, locate All items beginning with character-set, and modify its configuration to UTF8

650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M01/8D/E0/wKioL1itpw6DsRnLAAA343Y0dto387.png "title=" Character set. png "alt=" Wkiol1itpw6dsrnlaaa343y0dto387.png "/>

4. Set the parameter group for RDS to the parameter group you just created. Restart RDS

650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M00/8D/E2/wKiom1itpzbQa5tQAAA20M4c6OI741.png "title=" Associate. png "alt=" Wkiom1itpzbqa5tqaaa20m4c6oi741.png "/>

Since I created RDS here using the default parameter group, if you want to correlate the parameter group you need to compare, see if there are any other parameters changed to ensure that RDS does not have problems

Parameter comparison

650) this.width=650; "src=" Https://s3.51cto.com/wyfs02/M00/8D/E0/wKioL1itp1rDgoTjAABaiwj-XBw083.png "title=" Parameter comparison. png "alt=" Wkiol1itp1rdgotjaabaiwj-xbw083.png "/>

5. Verification

650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M02/8D/E2/wKiom1itp23RgWZNAAAMuNhGk_k148.png "title=" QQ picture 20170222223305.png "alt=" Wkiom1itp23rgwznaaamunhgk_k148.png "/>


This article from "Do not abandon!" Do not give up "blog, be sure to keep this source http://thedream.blog.51cto.com/6427769/1900377

RDS in AWS modifies the encoding of MySQL

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.