Home > Database > Mysql Tutorial > body text

mysql 输入中文是?

WBOY
Release: 2016-06-07 16:25:35
Original
1339 people have browsed it

mysql 输入中文是??? 先查看所有的编码 show variables like 'char%'; 所有的latin改成utf-8 set character_set_database= 'utf8'; set character_set_server= 'utf8'; 就好了 create database dbclass default character set utf8 collate utf8_general_c

mysql 输入中文是???

先查看所有的编码  show variables like 'char%';

所有的latin改成utf-8

set character_set_database= 'utf8';
set character_set_server= 'utf8';

就好了

create database dbclass default character set utf8 collate utf8_general_ci;
 
CREATE TABLE S
(
    SNO   VARCHAR(7),
    SNAME   VARCHAR(20) NOT NULL,
    STATUS   VARCHAR(20) ,  
    CITY VARCHAR(20),
    CONSTRAINT PK_S PRIMARY KEY(SNO)
)ENGINE=InnoDB DEFAULT CHARSET=utf8;

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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!