显示所有用户
select user,host,password from mysql.user;
用户赋权限
grant pression_list on db_name.table_name to user_name identified by “pasword” ;
创建用户
CREATE USER ‘用户’@’主机’ IDENTIFIED BY ‘密码’;
删除用户
drop user ‘user_name’@’主机域’ ;
查看用的权限
show grants for oldboy@localhostG ;
回收权限
REVOKE pression_list ON db_name.table_name FROM ‘user_name’@’主机域’ ;
刷新数据
flush privileges;
查看表的类型:
desc tables;
显示线程
show full processlist;
查看数据库的状态
show status ;