Check out example codes for "mysql update privileges". It will help you in understanding the concepts better.

Code Example 1

mysql> REVOKE ALL ON example_database.* FROM 'user_name'@'host_name'; 
mysql> GRANT privilege1, privilege2 ON example_database.* TO 'user_name'@'host_name';

Learn ReactJs, React Native from akashmittal.com