Prøv dette:
mysql -u root -h 127.0.0.1 -p
Enter password: (enter the random password here)
Ref:https://dev.mysql .com/doc/refman/5.7/da/data-directory-initialization-mysqld.html
Efter dette kan du nulstille din adgangskode ved at brugeALTER USER 'root'@'localhost' IDENTIFIED BY 'new-password';