如何在数据库中创建用户 [英] How to create user in database

查看:108
本文介绍了如何在数据库中创建用户的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在创建一个多用户应用程序。如何为许多类型的用户创建用户?我的意思是,在phpMyAdmin或用户表中创建用户? Arrr ...我不知道如何解释。

I''m creating a multi user application. How do i create user for many types of user to use? i mean like, create user in phpMyAdmin or in a user table? Arrr...I don''t know how to explain.

推荐答案

如果我找到你,你需要创建一个包含用户描述的表(例如细节,权限) )。

您可以通过两种方式实现这一目标,使用最适合您需求的方法。例如,如果您需要一个自定义界面,那么创建一个Web应用程序以进行修改,否则 phpMyAdmin 是一个可行的选项。
If I got you, you need to create a table containing user descriptions (e.g. details, privileges).
You may do that in both ways, use the method that best fits your needs. For instance, if you need a custom interface then make a web application in order to modify it, otherwise phpMyAdmin is a viable option.


你可能正在谈论基于角色的访问控制 [ ^ ]。请点击链接。

Probably, you''re talking about role-based access control[^]. Please, follow the link.
设计



在组织内,创建角色用于各种工作职能。执行某些操作的权限将分配给特定角色。为工作人员(或其他系统用户)分配特定角色,并通过这些角色分配获取执行特定计算机系统功能的计算机权限。由于用户未直接分配权限,而只是通过其角色(或角色)获取权限,因此管理个人用户权限只需将相应角色分配给用户的帐户即可;这简化了常见的操作,例如添加用户或更改用户的部门。


Within an organization, roles are created for various job functions. The permissions to perform certain operations are assigned to specific roles. Members of staff (or other system users) are assigned particular roles, and through those role assignments acquire the computer permissions to perform particular computer-system functions. Since users are not assigned permissions directly, but only acquire them through their role (or roles), management of individual user rights becomes a matter of simply assigning appropriate roles to the user''s account; this simplifies common operations, such as adding a user, or changing a user''s department.





正如Carlo Pallini提到的最佳创建方式多级用户应用程序是创建表,并为每个用户定义权限。根据定义的角色,用户可以访问特定的UI(用户界面)控件,方法等。



As Carlo Pallini had mentioned the best way to create multi-level-users application is to create table and there define privileges for each user. Depending on defined role, user can access to specific UI''s (user interface) controls, methods, etc.


这篇关于如何在数据库中创建用户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆