how to check user privileges in mysql command line code example Example: mysql check user privileges SHOW GRANTS FOR 'root'@'localhost';