Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2012
    Posts
    91

    Unanswered: Assigning different rights for different databases

    Is it possible to grant permissions for the user so that it had the status of one base ALL and for another only USAGE.
    Code:
    GRANT ALL ON BASE.*, USAGE ON BASE1.* TO 'USER' IDENTIFIED BY '123'
    I do not know how it should look like this query. Thanks.

  2. #2
    Join Date
    Sep 2009
    Location
    San Sebastian, Spain
    Posts
    880
    You have to split this up into 2 statements:

    Code:
    GRANT ALL ON BASE.* TO 'user' IDENTIFIED BY '123';
    GRANT USAGE ON BASE1.* TO 'user';
    Ronan Cashell
    Certified Oracle DBA/Certified MySQL Expert (DBA & Cluster DBA)
    http://www.it-iss.com
    Follow me on Twitter

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •