mysql forgets who is logged in: command denied to user ''@'%'

后端 未结 3 1880
悲哀的现实
悲哀的现实 2020-12-09 11:00

Running show grants; indicates that I am logged in as a user with all privileges on a database.

Running show table status; results in an er

3条回答
  •  星月不相逢
    2020-12-09 11:49

    The issue is probably that you have VIEWS in your database. The views are probably created with specific rights.

    As you can tell by your error message, it complains about a different user than the one you are logged in is. This is because for a view you can specify how to determine what rights the view has to look at data.

    When you go to your database, try typing:

    SHOW FULL TABLES IN sunflower_work WHERE TABLE_TYPE NOT LIKE '%table%';
    

    Then you may wish to look into the rights of the specific views that are there.

提交回复
热议问题