Home > Database > Mysql Tutorial > mysqlcreatedatabase指定utf-8编码_MySQL

mysqlcreatedatabase指定utf-8编码_MySQL

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-05-30 17:11:20
Original
1287 people have browsed it

如下脚本创建数据库yourdbname,并制定默认的字符集是utf8CREATE DATABASE IF NOT EXISTS yourdbname DEFAULT CHARSET utf8 COLLATE utf8_general_ci;如果要创建默认gbk字符集的数据库可以用下面的sql:create database yourdb DEFAULT CHARACTER SET gbk COLLATE gbk_chinese_ci;

Related labels:
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
Latest Issues
Problems React encounters when using utf-8
From 1970-01-01 08:00:00
0
0
0
How to create utf-8 files in python?
From 1970-01-01 08:00:00
0
0
0
Always use UTF-8 encoding
From 1970-01-01 08:00:00
0
0
0
Full UTF-8
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template