PhpMyAdmin login error root user

programmazione & dintorni
Rispondi
admin
Site Admin
Messaggi: 205
Iscritto il: dom mar 20, 2016 9:24 pm

PhpMyAdmin login error root user

Messaggio da admin »

Dopo l'installazione del server SQL, probabilmente,se provate a collegarvi con Phpmyadmin (con utente root) al vostro server MySQL, potrebbe tornarvi un errore che non autorizza il login.
Per risolverlo:

Codice: Seleziona tutto

sudo mysql -u root -p
use MySQL;
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";
Press Enter.
Flush the privileges by typing:

Codice: Seleziona tutto

 FLUSH PRIVILEGES;
Exit by typing:

Codice: Seleziona tutto

 Exit
Press Enter.
Rispondi