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

Code Example 1

grant all on `projectA\_%`.* to `projectA`@`%`;

Code Example 2

GRANT CREATE ON `foobar%`.* TO 'foobaruser'@'%' IDENTIFIED BY 'foobarpass';

Learn ReactJs, React Native from akashmittal.com