MySql : Grant read only options?

后端 未结 7 512
南笙
南笙 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:16

    If you want the view to be read only after granting the read permission you can use the ALGORITHM = TEMPTABLE in you view DDL definition.

提交回复
热议问题