Check out example codes for "how-to-remove-mysql-root-password". It will help you in understanding the concepts better.

Code Example 1

mysqladmin -u root -pType_in_your_current_password_here password ''

Learn ReactJs, React Native from akashmittal.com