Check out example codes for "remove root password mysql". 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