Home > Database > Mysql Tutorial > How to add Chinese characters to mysql

How to add Chinese characters to mysql

coldplay.xixi
Release: 2020-08-25 11:13:42
Original
4724 people have browsed it

How to add Chinese characters to mysql: first check the encoding of the database; then modify the character set of database jats003, the code is [alter database jats003 character set utf8].

How to add Chinese characters to mysql

Mysql method of adding Chinese characters:

Case one (database encoding):

1 , Check the encoding of the database: show create database jats003;

2. Modify the character set of database jats003: alter database jats003 character set utf8;

How to add Chinese characters to mysql

situation 2 (data table encoding):

1. View the character set of the data table show create table t_learn_student;

2. Modify the character set of the data table t_learn_student: alter table t_learn_student character set utf8;

How to add Chinese characters to mysql

Related learning recommendations: mysql tutorial

The above is the detailed content of How to add Chinese characters to mysql. For more information, please follow other related articles on the PHP Chinese website!

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