Mysql
 SQL >> Database >  >> RDS >> Mysql

Risolvere “mysqlnd cannot connect to MySQL 4.1+ using old authentication”

Rimuovi o commenta old_passwords = 1 in my.cnf e riavvia MySQL.

Verifica le password corte:

SELECT user, Length(`Password`)
FROM `mysql`.`user`;

Le vecchie hash sono di 16 caratteri, le nuove di 41. Aggiorna:

UPDATE mysql.user
SET Password = PASSWORD('password')
WHERE user = 'username';

FLUSH PRIVILEGES;