时间:2021-07-01 10:21:17 帮助过:3人阅读
show databases;
use mysql; // 打开库
show tables;
create database 库名;
建库是设置好字符编码:
create database 库名 character set utf-8;
GBK: create database test2 DEFAULT CHARACTER SET gbk COLLATE gbk_chinese_ci;
UTF8: CREATE DATABASE `test2` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
drop database 库名;
linux 中对 mysql 数据库的基本命令
标签:字符 基本命令 sql utf-8 编码 gen har 显示 size