Home > Database > Mysql Tutorial > 修改 MySQL 的默认编码

修改 MySQL 的默认编码

WBOY
Release: 2016-06-07 14:58:03
Original
1124 people have browsed it

设置MySQL默认编码的方法,当你建立Database的时候,默认下,系统是latin有限的,可以通过修改my.ini文件的mysqld的设置来实现设置默认编码(需要重启)。 MySQL [mysqld] character-set-server=utf8 collation-server=utf8_general_ci [mysqld]default-chara

设置 MySQL 默认编码的方法,当你建立 Database 的时候,默认下,系统是 latin 有限的,可以通过修改 my.ini 文件的mysqld 的设置来实现设置默认编码(需要重启)。 MySQL
[mysqld] 
character-set-server=utf8 
collation-server=utf8_general_ci
Copy after login
[mysqld]
default-character-set=utf8
Copy after login
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template