MySql : Grant read only options?

后端 未结 7 570
南笙
南笙 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.

提交回复
热议问题