Check out example codes for "how to add privilege in mysql user". It will help you in understanding the concepts better.

Code Example 1

GRANT ALL PRIVILEGES ON database_name. * TO 'username'@'localhost';

Code Example 2

CREATE USER 'newuser'@'localhost' IDENTIFIED BY 'password';

Learn ReactJs, React Native from akashmittal.com