# 查看用户权限 Joe 想要查看 Fred 的 MySQL 账户 `'fred'@'%'` 的权限,他应该怎么做?
点击进入[MySQL实战练习环境](https://mydev.csdn.net/product/pod/new?image=cimg-centos7-skilltreemysql&connect=auto&create=auto&utm_source=skill){target="_blank"}。 * `show databases;` 列出所有数据库 * `show tables;` 列出所有表 ## 答案 ```sql show grants for fred; ``` ## 选项 ### A ```sql select grants from fred; ``` ### B ```sql show privileges for fred; ``` ### B ```sql show privileges from fred; ```