Jump to content

[SOLVED] granting user help


sasori

Recommended Posts

let's say i want to grant a user with all of the data privileges except the structure and administration in one blow? how am gonna command that?

because if am gonna do this thing

 

GRANT ALL PRIVILEGES ON *.* to 'dummy'@'localhost' identified by 'pass';
with MAX_QUERIES_PER_HOUR 0
MAX_CONNECTIONS_PER_HOUR 0
MAX_UPDATES_PER_HOUR 0
MAX_USER_CONNECTIONS 0;

 

the user will be able to have administration and structure privileges  :(

 

 

 

Link to comment
Share on other sites

This should work

 

GRANT SELECT, INSERT, UPDATE, DELETE ON *.* to 'dummy'@'localhost' identified by 'pass';
with MAX_QUERIES_PER_HOUR 0
MAX_CONNECTIONS_PER_HOUR 0
MAX_UPDATES_PER_HOUR 0
MAX_USER_CONNECTIONS 0;

 

 

Link to comment
Share on other sites

This should work

GRANT SELECT, INSERT, UPDATE, DELETE ON *.* to 'dummy'@'localhost' identified by 'pass';
with MAX_QUERIES_PER_HOUR 0
MAX_CONNECTIONS_PER_HOUR 0
MAX_UPDATES_PER_HOUR 0
MAX_USER_CONNECTIONS 0;

 

how bout without having to type select, insert, update, delete ? is there any short cut? because as we all know, if i will type Grant All privileges , not just the data privileges alone will be given.but including the structure and administration privileges will be included.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.