Hi here, I was testing auth part and noticed (vers...
# questions-and-troubleshooting
g
Hi here, I was testing auth part and noticed (version 3.5.3) that grants to specific users work however I couldnt see them in SHOW GRANTS table; Only root users appear in a table:
As I can see we can check grants for specific user but couldnt for all of them ?
y
Copy code
SHOW GRANTS; -- View the privileges of the current user.
SHOW GRANTS FOR ROLE <role_name>; -- View the privileges of a specific role.
SHOW GRANTS FOR <user_identity>; -- View the privileges of a specific user.
g
Yes, thanks for shareing. Just wondering can I check all users/roles grants together?
y
All grants can be checked in the system tables. Hope this helps!
Copy code
mysql> use sys;
Database changed
mysql> show tables;
+---------------------+
| Tables_in_sys       |
+---------------------+
| fe_locks            |
| fe_memory_usage     |
| grants_to_roles     |
| grants_to_users     |
| object_dependencies |
| policy_references   |
| role_edges          |
| users               |
+---------------------+
8 rows in set (0.00 sec)
🙌 1