MySql : Grant read only options?

后端 未结 7 497
南笙
南笙 2020-12-12 12:36

I have a user, whom I want to grant all the READ permission on a db schema.

One way is this :

GRANT SELECT, SHOW_VIEW  ON test.* TO \'readuser\'@\'%         


        
相关标签:
7条回答
  • 2020-12-12 13:23
    GRANT SELECT ON *.* TO 'user'@'localhost' IDENTIFIED BY 'password';
    

    This will create a user with SELECT privilege for all database including Views.

    0 讨论(0)
提交回复
热议问题