List:General Discussion« Previous MessageNext Message »
From:Rolf Hopkins Date:May 15 2001 1:34am
Subject:Re: Grant
View as plain text  
----- Original Message -----
From: "Richard Kurth" <rkurth@stripped>
To: <mysql@stripped>
Sent: Tuesday, May 15, 2001 8:16
Subject: Grant

>    I am looking for different views about this
> I have a few question about Granting privileges to a user
> 1. Do you have to give them GRANT SELECT,INSERT,UPDATE,
> their database?

No, only those that they will need to do their job.

> 2. Is it best to give them the least amount of privileges?

Yes, just enough to do their job.

> 3. Is this the best way to do it were this gives no privileges in the
> user database and all the privileges in the db database
> $userdatabase.* TO '$newuser'@'$domaname' IDENTIFIED BY '$newuserpass'
> 4. How would I wright this to give them privileges in the host
> database.

You can't look at it that way.  Some commands put them in both db and user
tables, while others could put them in other tables but that's not
important.  It is better to understand what the actual command is doing and
what you want to achieve.  In other words, what rights do you want to give
the user?  In this case, you're granting $newuser the right to access
$userdatabase from the domain $domaname, with the listed privileges.

> For your information I have read the Manual a number of times I am
> just looking for other views.
> Best regards,
>  Richard
> mailto:rkurth@stripped
> ---------------------------------------------------------------------
> Before posting, please check:
>   (the manual)
>           (the list archive)
> To request this thread, e-mail <mysql-thread73747@stripped>
> To unsubscribe, e-mail
> Trouble unsubscribing? Try:

GrantRichard Kurth15 May
  • Re: GrantRolf Hopkins15 May