允许用户创建和更改表? [英] Allow user to create and alter table?

查看:88
本文介绍了允许用户创建和更改表?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个当前的mysql用户,该用户对数据库example中的所有表都具有SELECT特权.如何赋予该用户特权以添加新表以及将记录更改/添加到它创建的表中?

I have a current mysql user who has SELECT privileges for all the table in database example. How can give that user privileges to add new tables, and alter/add records to the table it created?

推荐答案

结合使用Grant关键字和您要赋予用户的表特权.

Use the grant keyword combined with the table privileges you seek to give the user.

GRANT ALTER, CREATE ON example TO 'someuser'@'somehost';

MySQL Grant

MySQL表权限

这篇关于允许用户创建和更改表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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