Open terminal
Type
sudo mysql
then type
ALTER USER ‘root’@‘localhost’ IDENTIFIED WITH mysql_native_password BY ‘yourpassword’;
Open terminal
Type
sudo mysql
then type
ALTER USER ‘root’@‘localhost’ IDENTIFIED WITH mysql_native_password BY ‘yourpassword’;
Tags Access denied for user 'root'@'localhost'