Domanda

Sto usando CPanel e volevo concedere un utente create view privilegi. Quando ho creato l'utente e il database in CPanel, non aveva un'opzione per questo.
Quindi ho provato a farlo in phpmyadmin usando:

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

E ricevo l'errore:

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

È stato utile?

Soluzione 3

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

Altri suggerimenti

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.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top