Check out example codes for "how to login to mysql as normal user in ubuntu". It will help you in understanding the concepts better.

Code Example 1

mysql -u newuser -p

Code Example 2

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

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

Learn ReactJs, React Native from akashmittal.com