Allow user to create and alter table?

前端 未结 4 1048
你的背包
你的背包 2021-01-17 10:42

I have a current mysql user who has SELECT privileges for all the table in database example. How can give that user privileges to add new tables, a

4条回答
  •  粉色の甜心
    2021-01-17 11:21

    Use the grant keyword combined with the table privileges you seek to give the user.

    GRANT ALTER, CREATE ON example TO 'someuser'@'somehost';
    

    MySQL Grant

    MySQL Table Privileges

提交回复
热议问题