Check out example codes for "mysql error 1251". It will help you in understanding the concepts better.

Code Example 1

mysql> ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'your_new_password';
mysql> FLUSH PRIVILEGES;
mysql> quit

Learn ReactJs, React Native from akashmittal.com