Basic functions of mysql+show+innodb+index+slow sql+explain

basic skills

DML
DDL
DCL
Insert picture description here

show statement

show engines
show databases;
show tables;
show status
show processlist

Slow sql

Insert picture description here

index

创建索引,删除索引的语法
alter table table_name add index index_name (column_list) ;
alter table table_name add unique (column_list) ;
alter table table_name add primary key (column_list) ;
create index index_name on table_name (column_list) ;
create unique index index_name on table_name (column_list) ;

explain

Guess you like

Origin blog.csdn.net/lineuman/article/details/114708674