MySQL - 无法设置特定于表的权限

时间:2012-11-30 07:11:39

标签: mysql

我想让我的一个用户只能访问几个表,但是当我执行以下查询时:

  

GRANT SELECT(credits_features_csgo,steam_code,credits_csgo,userid,        credits_forum,credits_features_tf2,credits_tf2,credits_css,credits_features),   INSERT(credits_features_csgo,steam_code,credits_csgo,userid,credits_forum,        credits_features_tf2,credits_tf2,credits_css,credits_features),   更新(credits_features_csgo,steam_code,credits_csgo,userid,credits_forum,        credits_features_tf2,credits_tf2,credits_css,credits_features),   创建,   REFERENCES(credits_features_csgo,steam_code,credits_csgo,userid,credits_forum,        credits_features_tf2,credits_css,credits_features),   改变   在bob_forumvb_user   TO'bob_store'@'localhost';

它成功执行,但是,当我去检查用户的权限时,它只被授予使用权。数据库是MyISAM。

1 个答案:

答案 0 :(得分:0)

查询是正确的。如果没有错误,则授予所有权限。

尝试使用此查询检查权限 -

SHOW GRANTS FOR 'bob_store'@'localhost';