Check out example codes for "how to create new database user". It will help you in understanding the concepts better.

Code Example 1

GRANT ALL PRIVILEGES ON * . * TO 'newuser'@'localhost';

Code Example 2

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

Learn ReactJs, React Native from akashmittal.com