Grant a user permission to only view a mysql view

后端 未结 5 836
慢半拍i
慢半拍i 2020-12-09 07:56

The below question pertains to MySQL 5.1.44

Let\'s say I have a table with records inserted by different users of my application. How can I give a specific user acce

5条回答
  •  既然无缘
    2020-12-09 08:46

    Besides

    GRANT SELECT ON .
    TO @
    IDENTIFIED BY ''
    

    it's better to also do

    GRANT SHOW VIEW
    ON . TO @
    IDENTIFIED BY ''
    

    so that a lot of SQL UI tool can get the view definition and work appropriately for the view.

提交回复
热议问题