mysql change root mysql_native_password
snippet in sql

mysql change root mysql_native_password

user8734

UPDATE
	mysql.user
SET
	plugin = 'mysql_native_password', 
	Password = PASSWORD('')
WHERE
	User = 'root';

how to login to mysql as normal user in ubuntu

user3541

CREATE USER 'newuser'@'localhost' IDENTIFIED BY 'password';

GRANT ALL PRIVILEGES ON database_name.* TO 'newuser'@'localhost';

how to login to mysql as normal user in ubuntu

user6695

mysql -u newuser -p