#查看當前正在執行的sql語句sql
show processlist;ide
#查看用戶的權限spa
show grants for real@ '192.168.80.%'索引
#查詢表的記錄數ssl
select count(*) from table_name;it
#查詢表結構table
desc table_name;class
show create table table_name\Gselect
#查詢索引sql語句
show index from table_name\G
#修改表的引擎
ALTER TABLE `zaoren_sid` ENGINE=InnoDB;
#更改字段名
alter table tbl_name change 舊字段 新字段 新字段類型;