Per risolverlo:
Codice: Seleziona tutto
sudo mysql -u root -p
Press Enter.
Set your MySQL password with the following command, replacing "EnterYourPasswordHere" with your new chosen password:
Codice: Seleziona tutto
UPDATE mysql.user SET Password=PASSWORD("EnterYourPasswordHere") WHERE User="root";
Flush the privileges by typing:
Codice: Seleziona tutto
FLUSH PRIVILEGES;
Codice: Seleziona tutto
Exit