Safety studies twelve database

Experimental twelve database security

First, the  Experiment:

1, the database user account creation and deletion

2, the database user rights granted and recover

Second, the  pilot project: staff management database

Staff management for enterprise database management, database named YGGL in, YGGL database consists of three tables: Employees (employee information table), Departments (department information table), Salary (staff salaries Fact Sheet).

Third, the  experimental procedures required to complete the following :( command)

1, create a database user user_1 and user_2, passwords are 123456 (assuming that the server name is localhost), and view both user in the user table;

 

 

2

(1) to change the name of the user user_2 user2;

 

 

(2) modification of the user password is user_1 123;

 

 

3, delete user user2;

 

 

4, log on as a user user_1 mysql server, performs several database operations, to see what the user has permission?

 

 

5, grant users permissions to YGGL user_1 query the database Employees table as a user login user_1 mysql server, verify that the authority;

 

 

 

6, grant users permissions to YGGL u1 query the database Employees table, log on as a user u1 mysql server, verify that the permissions;.

 

 

 

7, user_1 grant users to query and modify permissions on the Salary table and allow the permissions granted to other users;

 

 

 

8, a user's login user_1 mysql server and authorize all rights user_1 to u1 users;

.

 

 

9, log on as a user u1 mysql server, verify that it has to query and modify permissions on the Salary table;

 

 

10, recovered user_1 query privileges on the Salary table as a user login user_1 mysql server, verify that the user can query the Salary table;

 

 

 

 

 

11、           以u1的用户身份登录mysql服务器,验证其是否还可以对Salary表进行查询。

 

 

12、                授予u1对Departments表中备注列的修改权限;

 

 

13、                授予u1对YGGL数据库中所有表的查询权限,并以u1的用户身份登录mysql服务器,验证该权限;

 

 

 

14、                授予u1创建数据库表的权限,并以u1的用户身份登录mysql服务器,验证该权限。

 

 

 

           

四、  实验报告要求

1、 实验报告格式要求

包括内容:标题、实验内容、实验步骤、实验中遇到的问题及解决方案

2、 实验报告内容要求

(1)     标题参看实验指导标题+“实验报告”,如“实验一 MySQL的安装与命令初步实验报告”;

(2)     实验内容与实验指导中相同;

(3)     实验步骤中将自己实验中的每个步骤的命令和操作结果显示界面进行截图完善。

(4)     实验中遇到的问题及解决方案中如实地将自己的问题的解决过程记录出来。

3、 实验报告提交要求

每次实验课结束之后,每个人需要提交实验报告,实验报告命名为:学号姓名 

五、  补充说明

 

Guess you like

Origin www.cnblogs.com/lvwuwa/p/11128568.html