Grant privileges on several tables with specific prefix

后端 未结 4 1478
清歌不尽
清歌不尽 2020-12-08 02:56

I\'m using the table prefix method for having several clients use the same database. The number of tables created per client will be ~55. Instead of doing all of the grant

4条回答
  •  [愿得一人]
    2020-12-08 03:46

    The following

    GRANT SELECT , INSERT , UPDATE , DELETE ON ``database.prefix\_%``. * TO 'username'@'localhost'

    works fine (tested with MySQL 5.6.12 on Windows)

提交回复
热议问题