我想让我的一个用户只能访问几个表,但是当我执行以下查询时:
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_forum
。vb_user
TO'bob_store'@'localhost';
它成功执行,但是,当我去检查用户的权限时,它只被授予使用权。数据库是MyISAM。
答案 0 :(得分:0)
查询是正确的。如果没有错误,则授予所有权限。
尝试使用此查询检查权限 -
SHOW GRANTS FOR 'bob_store'@'localhost';