Check out example codes for "mysql user permission database". It will help you in understanding the concepts better.

Code Example 1

GRANT ALL PRIVILEGES ON `db_name`.* TO 'user'@'host'

Code Example 2

GRANT ALL PRIVILEGES ON dbTest.* To 'user'@'hostname' IDENTIFIED BY 'password';

Learn ReactJs, React Native from akashmittal.com