How can I solve the problem of Job failed to start when I modify mysql character encoding?

Source: Internet
Author: User


When you modify the mysql character encoding, the following error occurs: Job failed to start. When you fill in the MySQL database in python mange. py shell, you cannot enter Chinese characters.
Modify the MySQL database encoding.
Find the following information on the Internet: $ sudo gedit/etc/mysql/my. add under cnf [client]: default-character-set = utf8 [mysqld: default-character-set = utf8 and save and exit $ sudo service mysql restart. The Job failed to start www.2cto.com failed may be a version issue, check the character encoding method modification method in Versions later than 5.5 and find that the [mysqld] modification method has changed: character-set-serve should be added under [mysqld] R = utf8 collation-server = utf8_general_ci save and exit $ sudo service mysql restart. MySQL Console: show variables like 'character % '; www.2cto.com + region + | Variable_name | Value | + ----------------------------------- + region + | character_set_client | utf8 | character_set_connection | utf8 | | Utf8 | bytes | binary | bytes | utf8 | www.2cto.com | character_set_server | utf8 | character_set_system | utf8 | character_sets_dir |/usr/share/mysql/charsets/| + bytes + ----------------------------------- + 8 rows in set (0.00 sec) the modification is successful. make a record. Author Mage001

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.