Explain how to view and Revoke user privileges in MySQL.
View user privilegesPrivileges assigned to users can be viewed using the SHOW GRANTS USER_NAME command.
Example:SHOW GRANTS for sampleuser;
Revoke user privilegesPrivleges assigned can be revoked using REVOKE PRIVELEG_NAME
Example:REVOKE CREATE ON *.* FROM sampleuser;