[英]creating a read-only user in phpMyAdmin
I'm trying to create a user that can only read from a database. 我正在尝试创建一个只能从数据库中读取的用户。 This is the user creation screen on phpMyAdmin.
这是phpMyAdmin上的用户创建屏幕。 For the first set (
Data
), I figured I only need SELECT
. 对于第一组(
Data
),我想我只需要SELECT
。 But I'm not sure about the second and third sets ( Structure
and Administration
). 但我不确定第二和第三组(
Structure
和Administration
)。 Some options like Event
Trigger
Execute
are a bit confusing. 像
Event
Trigger
Execute
这样的选项有点令人困惑。 Do I need those for a read-only user? 我是否需要那些只读用户? What exactly do I need to enable/disable?
我究竟需要启用/禁用什么?
如果用户只能读取数据库,则不应授予他们“结构”或“管理” 下列出的任何权限。
Disable everything in 'structure' and 'administration'. 禁用“结构”和“管理”中的所有内容。 There's is no point in giving a person read-only rights on a table/db while leaving them the ability to completely destroy that same table/db.
给一个人在表/ db上的只读权限是没有意义的,同时让他们能够完全销毁同一个表/ db。
第一部分仅涉及使用表的数据进行管理,您只需要SELECT
权限即可拥有只读用户。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.