Check out example codes for "mysql 8 error on identified by". It will help you in understanding the concepts better.

Code Example 1

use mysql;
CREATE USER 'username'@'localhost' IDENTIFIED BY 'password';
GRANT ALL ON *.* TO 'username'@'localhost';
flush privileges;

Learn ReactJs, React Native from akashmittal.com