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