Problema alle password vecchie in upgrade da MySQL 5.5 a MySQL 5.5

Dopo l’upgrade, in Symfony si può avere questo errore:

Server is running in --secure-auth mode, but 'nome'@'localhost' has a password in the old format; please change the password to the new format

Oppure WordPress dà errore di accesso al database.

Per risolverlo bisogna cambiare le eventuali password in formato old_format nel nuovo formato:

root@mysql-5.1.51> SET SESSION old_passwords=0;
Query OK, 0 rows affected (0.00 sec)

root@mysql-5.1.51> SET PASSWORD FOR 'webuser'@'localhost' = PASSWORD('123456')