
菜单→工具→安全→设置安全机制向导
用此向导可以设置不同用户不同的密码,并且是不同的权限,设置好以后也可以修改,但必须具有管理员或所有制权限,也是在菜单→工具→安全→用户与组权限 在这里可以修改。
1,用Windows 身份验证方式或 sa用户 连接服务器,打开安全性 → 右击登录名 → 新建登录名
2,常规
Step1 : 输入账户名,密码 ;
Step2 : 去掉密码策略的勾 ;
Step3 : 根据需要选择默认数据库,默认语言 ;
3,服务器角色
4,用户映射
Step1 : 勾选映射的数据库,即该用户可以访问的数据库,这边实际上就是一个对数据库访问权限的控制 ;
Step2 : 勾选数据库角色成员身份,这边实际上就是一个对数据库 *** 作权限的控制,这边设成db_datereader 就是只读的权限;
5,安全对象、状态 默认即可,可以不设置。如有特殊需要再去设置。 点击确定完成,新用户名way就生成了。
1打开企业管理器进入sql
server组安全性2创建、选择你进行设置权限的用户,右击属性!3点击标题栏下数据库访问,对其用户设置给予访问的数据和数据库角色4点击确定,完成设置mssql数据库访问用户及访问权限
(责任编辑:winiis)
1、创建新用户
通过root用户登录之后创建
>> grant all privileges on to testuser@localhost identified by "123456" ;//创建新用户,用户名为testuser,密码为123456 ;
>> grant all privileges on to testuser@localhost identified by "123456" ;//设置用户testuser,可以在本地访问mysql
>> grant all privileges on to testuser@"%" identified by "123456" ; //设置用户testuser,可以在远程访问mysql
>> flush privileges ;//mysql 新设置用户或更改密码后需用flush privileges刷新MySQL的系统权限相关表,否则会出现拒绝访问,还有一种方法,就是重新启动mysql服务器,来使新设置生效
2、设置用户访问数据库权限
>> grant all privileges on test_db to testuser@localhost identified by "123456" ;//设置用户testuser,只能访问数据库test_db,其他数据库均不能访问 ;
>> grant all privileges on to testuser@localhost identified by "123456" ;//设置用户testuser,可以访问mysql上的所有数据库 ;
>> grant all privileges on test_dbuser_infor to testuser@localhost identified by "123456" ;//设置用户testuser,只能访问数据库test_db的表user_infor,数据库中的其他表均不能访问 ;
3、设置用户 *** 作权限
>> grant all privileges on to testuser@localhost identified by "123456" WITH GRANT OPTION ;//设置用户testuser,拥有所有的 *** 作权限,也就是管理员 ;
>> grant select on to testuser@localhost identified by "123456" WITH GRANT OPTION ;//设置用户testuser,只拥有查询 *** 作权限 ;
>> grant select,insert on to testuser@localhost identified by "123456" ;//设置用户testuser,只拥有查询\插入 *** 作权限 ;
>> grant select,insert,update,delete on to testuser@localhost identified by "123456" ;//设置用户testuser,只拥有查询\插入 *** 作权限 ;
>> REVOKE select,insert ON what FROM testuser//取消用户testuser的查询\插入 *** 作权限 ;
以上就是关于怎样设置access数据库的访问权限全部的内容,包括:怎样设置access数据库的访问权限、怎样设置SQL Server的用户及权限、如何设置MSSQL数据库访问用户及访问权限等相关内容解答,如果想了解更多相关内容,可以关注我们,你们的支持是我们更新的动力!
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)