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

Code Example 1

CREATE USER 'newuser'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON * . * TO 'newuser'@'localhost';

Learn ReactJs, React Native from akashmittal.com