Why is GRANT not working in MySQL?

后端 未结 4 1187
伪装坚强ぢ
伪装坚强ぢ 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:25

    what you are selecting are the global privileges. you are however giving database (and host, but that doesnt matter) specific privileges.

    GRANT INSERTON wordpress.* TO 'www'@'localhost' IDENTIFIED BY 'basic';

    theese permissions are stored in the db table.

    just to point you in the right direction:

    SHOW GRANTS FOR 'www'@'localhost'
    

    http://dev.mysql.com/doc/refman/5.0/en/show-grants.html

提交回复
热议问题