mysql实验报告4_实验四∶数据库安全性实验报告.doc

253b171540df25e1b84436cbe50dfc72.gif实验四∶数据库安全性实验报告.doc

1 / 2实验四数据库安全性班级软件工程 0918 姓名许啸 学号0911610819实验目的 验证数据库安全性实验要求 1)新建一个登陆名为 tom,密码为 tom001 的登陆帐户,登陆后用户名为 user_tom,默认情况下该用户具有哪些权限2)授予该用户对 Student 表的查询权限,同时授予其进一步授权其他用户的权利。3)新建一个登陆名为 marry,密码为 marry001 的登陆帐户,登陆后用户名为 user_marry。4)以 tom001 登陆,将对 Student 表的查询权限赋予 marry,但不加 withgrant option 参数。5)以 marry001 登陆,尝试将对 Student 表的查询权限授权给用户 guest。6)新建角色 dbnormuser,同时将 marry 用户指定该角色,授予该角色对 Student 表的查询权限,再重新执行第 5 步,结果如何7)使用 sp_addsrvrolemember 系统存储过程将 marry 用户指定 sysadmin 固定服务器角色,再重新执行第 5 步,结果如何实验内容 按照要求我首先建立了一个模式,1)create login tom with passwordtom001use student_course gocreate user user_tom from login tom with grant option仅可以对 student_course 数据库访问,但是不能访问里面的表格。 2)use student_coursegogrant select on Student to user_tom3)create login marry with passwordmarry001use student_course go create user user_marry from login marry4)use student_coursego grant select on Student to user_marry5)无法授权use student_course2 / 2go grant select on Student to guest6)create role dbnormusergrant select on Student to dbnormusergrant dbnormuser to user_marry 可以授权了7)又不能授权了实验心得 通过这次数据库安全性的实验,更加深刻的了解 SQL Server2005 语言的运用、学会了账户的新建与授权,而且更加熟练的掌握数据库的增删改查,理论结合动手操作,通过实验进一步理解数据库安全。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值