1、创建两个新用户U_student1和U_student2,密码分别为1234和5678
create user U_student1@localhost identified by '1234',
U_student2@localhost identified by '5678';

2、创建两个新用户的详细信息保存在MySQL数据库的user表中
use mysql;
select user, host, authentication_string from user;

3、修改用户名
rename user U_student1@localhost to U_stu1;

4、修改用户密码
alter user U_student2@localhost identified by 'abc123';

5、删除用户
drop user U_stu1, U_student2@localhost;

6、授予权限
使用grant语句,对用户U_student 所有的数据有查询和插入的权限,并授予grant权限
创建用户U_student
create user U_student@localhost identified by '123';
grant select, insert on *.*
to U_student@localhost
with grant option;

使用grant 语句将d_eams数据库中的student 表中的student delete 权限授予用户U_student
grant delete on d_eams.student
to U_student@localhost;

使用grant语句将d_eams数据库中的sc表中成绩列的update权限授予用户U_student
grant update(成




![设计模式学习[10]---迪米特法则+外观模式](https://i-blog.csdnimg.cn/direct/9a94925cdd114fcc9645e72790b7030b.png)














