checking all user access in mysql code example Example: mysql check user privileges SHOW GRANTS FOR 'root'@'localhost';