Why is GRANT not working in MySQL?

后端 未结 4 1186
伪装坚强ぢ
伪装坚强ぢ 2020-12-13 05:58

I\'m scratching my head on this one as I see a ton of helper websites showing how to create MySQL users and grant privileges but for some reason it just does not work for me

4条回答
  •  南方客
    南方客 (楼主)
    2020-12-13 06:46

    That's not where the most user GRANTed rights are stored - try

    SHOW GRANTS FOR 'www'@'localhost'
    

    to see database-specific permissions instead. (A grant would only show up in the user table if it was for all databases.)

    Here's a (rather old) step-by-step detail of how permissions are stored in MySQL - I don't think things have changed much.

提交回复
热议问题