mysql statement to check which accounts have specific privileges code example Example: mysql check user privileges SHOW GRANTS FOR 'root'@'localhost';