1142 SELECT command denied to user'database'@'localhost' for table'table' (no authorization)

Use Navicat to authorize and
click on the upper left corner to create a new query:
use mysql;
select * from user where user='database name';
Insert picture description here
change the red line part to'Y', save and restart mysql, the password may be reported incorrectly, just change the password

Guess you like

Origin blog.csdn.net/weixin_43018356/article/details/114264724