By 5 Dicembre 2013 0 Comments

Client does not support authentication protocol requested by server

Client does not support authentication protocol requested by serverLe versioni 4.1 e superiori di mySQL usano un protocollo di autenticazione basato su un algoritmo di hashing della password che risulta essere incompatibile con le vecchie versioni dei client.

Se dopo aver eseguito l’upgrade del server ad una versione >= 4.1 si prova a connettersi allo stesso tramite un vecchio client il processo di autenticazione fallirà producendo il seguente messaggio d’errore:

“Warning: mysql_connect(): Client does not support authentication protocol requested by server; consider upgrading MySQL client in C:rootwww.sito.ittestmysql.php on line 2 Could not connect to MySQL: Client does not support authentication protocol requested by server; consider upgrading MySQL client”.

Per risolvere il problema, bisogna collegarsi a MySql come ROOT (anche PHPmyAdmin va bene) ed eseguire il seguente comando:

UPDATE mysql.user SET Password = OLD_PASSWORD(‘password’) WHERE User = ‘mioutente’;
FLUSH PRIVILEGES;

Posted in: Database

About the Author:

shared on wplocker.com