Check out example codes for "how to use mysql in windows offline". It will help you in understanding the concepts better.

Code Example 1

UPDATE mysql.user SET password=PASSWORD("my-new-password") WHERE User='root';
FLUSH PRIVILEGES;

Learn ReactJs, React Native from akashmittal.com