I have over 100 system and admin users in my db server. Does anyone know how to show their grants by running a single query? Thank you very much.
MySQL Permissions – How to Show All Grants in MySQL
MySQLmysql-5.6permissions
Related Question
- Mysql – xtrabackup backup grants
- MySQL Processes – Not All MySQL Processes Are Killed When Restarting
- Mysql – how to deal with thesql 500 million data per month
- Mysql – show variables command constantly running on user
- MySQL – Galera Takes Too Much Time for Pre-commit Stage
- PostgreSQL Permissions – GRANT ON ALL TABLES Not Working for New Tables
- Removing Grants for Non-Existent Databases in MySQL and MariaDB
- Database Migration – Moving Users from MariaDB 10.1 to MySQL 5.7
Best Answer
No need to run a query - just input
If you have sufficient privileges, you should get all their privileges.
A bit more fine-grained is the following query
This way, you can do it by user, &c. BTW, you have to run this from the
information_schema
. This informationThis page should also be of use.
Using the
mysql
schema, you can issue the queryFrom this page.