som her siger:
1.hvis du er i skip-grant-tables-tilstand
i mysqld_safe:
UPDATE mysql.user SET authentication_string=null WHERE User='root';
FLUSH PRIVILEGES;
exit;
og derefter i terminal:
mysql -u root
i mysql:
ALTER USER 'root'@'localhost' IDENTIFIED WITH caching_sha2_password BY 'yourpasswd';
2.ikke i skip-grant-tables-tilstand
kun i mysql:
ALTER USER 'root'@'localhost' IDENTIFIED WITH caching_sha2_password BY 'yourpasswd';