Check out example codes for "mysql grant all privileges to a user". It will help you in understanding the concepts better.

Code Example 1

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

Learn ReactJs, React Native from akashmittal.com