How to Set character sets based on mysql 5.5

Source: Internet
Author: User

I installed a mysql on the virtual machine, modified its my. cof file, and found that this configuration file is powerful, but encountered a problem:

When setting character sets, set default-character-set = utf8 under [client], [mysql], and [mysqld], but the following problems occur:


One by one troubleshooting, it is found that it is caused by setting default-character-set = utf8 under [mysqld. View the/var/lib/mysql/$ {hostname}. err file:


The problem is that mysqld does not recognize default-character-set. I checked some information online and found that setting character_set_server = utf8 under mysqld is good.

View character set:Show variables like 'character % ';


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.