首页 > 代码库 > mysql_error:mysqlnd cannot connect to MySQL 4.1+ using the old insecure authentication

mysql_error:mysqlnd cannot connect to MySQL 4.1+ using the old insecure authentication

SET old_passwords =0;

UPDATE mysql.user SET Password =PASSWORD(‘testpass‘) WHERE User=‘testuser‘ limit 1;
SELECT LENGTH(Password) FROM mysql.user WHERE User=‘testuser‘;
FLUSH PRIVILEGES;

mysql_error:mysqlnd cannot connect to MySQL 4.1+ using the old insecure authentication