mysql- library operations

Simple to use library

Data must be kept up to find a file, that is, the table, the table must exist in the library, which is a folder

The first step should be to create a database, create tables

#切换数据库 
use 数据库名称   可以不加分号

#查看所有数据库
show databases;
show create database 库名称; #查看数据库详细信息 

#创建新的数据库 
create database 数据库名称;   
create database 数据库名称 charset utf8;     # 指定编码方式 

# 删除数据库 
drop database 数据库名称; 

#修改数据库编码  可以进入到数据库文件夹中修改db.opt  
#第一行是编码 第二行是排序规则 自己搜索一个


#修改数据库名 可以直接修改对应的文件夹名称  

Naming conventions

  • not case sensitive
  • Do not use keywords
  • You can not use pure digital
  • The ring may be used in combination, usually a character / underscore / number

Guess you like

Origin www.cnblogs.com/raynduan/p/11444620.html