mysql create user with mysql_native_password
snippet in sql

mysql create user with mysql_native_password

user6770

CREATE USER 'user'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password';
GRANT ALL PRIVILEGES ON * . * TO 'user'@'localhost';
FLUSH PRIVILEGES;