开发者

Granting the create view privilege in mysql using cpanel/phpMyAdmin

I am using cpanel and I wanted to grant a user create view privileg开发者_Go百科es. When I created the user and database in cpanel it did not have an option for that.

So I tried to do it in phpMyAdmin using :

GRANT CREATE VIEW ON (dbname).* TO '(db username)'@'localhost';

and I get the error:

#1044 - Access denied for user '(host username)'@'localhost' to database '(dbname)'


What version of cpanel are you using? I mine, I go to MySQL databases. All your tables are listed with users who have privileges on those tables and the users are links. When you click on one of the links, it takes you to a list of privileges that are checkboxes. Couldn't be simpler, all though I find it difficult to trust something that makes my privilege handling so simple!

Is it possible that you don't have the grants yourself to give grants?


I also had this same problem and after many searches when i look through the cpanel thoroughly i discovered something. To work with database we need to grant our user full privileges. Cpanel named this job differently. They call it "Add User To Database". Add your user with the database you desire. Then it'll work. Probably we miss it or we don't know what to do with it. So that we face this problem.


As best I can tell this isn't possible with some configurations.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜