Change the default character set of MySQL under Ubuntu11.10
Source: Internet
Author: User
In Ubuntu11.10, change the default character set of MySQL. because I installed Mysql using sudoapt-getinstallmysql-server, the mysql character set of MySQL is still latin1 by default, so it must be changed to the utf8 character set. Modify the/etc/mysql/my. cnf file www ....
In Ubuntu11.10, the default character set of MySQL is changed because I installed mysql in sudo apt-get install Mysql-server mode. by default, the mysql character set is still latin1, therefore, you must replace it with the utf8 character set. Modify/etc/mysql/my. cnf file www.2cto.com 1 sudo gedit/etc/mysql/my. after cnf is enabled, add default-character-set = utf8 under [clinet] and add default-character-set = utf8 under [mysqld]. then restart mysql 1 sudo/etc/init. d/mysql restart. then let's check the changed character set 1 in mysql. open the terminal mysql-u root-p2 show variables like 'character _ set _ % '; 3 show variables like 'collation _ % '; author: Guan Lingyu
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