Answers:
列出用户:
select user,host from mysql.user;
显示特权:
show grants for 'user'@'host';
要更改特权,请先撤销。如:
revoke all privileges on *.* from 'user'@'host';
然后根据需要授予适当的特权:
grant SELECT,INSERT,UPDATE,DELETE ON `db`.* TO 'user'@'host';
最后,冲洗:
flush privileges;
MySQL文档非常出色:
https://dev.mysql.com/doc/refman/8.0/zh-CN/access-control.html