Check out example codes for "mysql root permission denied lost". It will help you in understanding the concepts better.

Code Example 1

GRANT ALL ON *.* TO 'user'@'localhost' with GRANT OPTION;

Learn ReactJs, React Native from akashmittal.com