MYSQL4.1版本的问题

用PHP链接的时候会出现错误 Client does not support authentication protocol requested
by server; consider upgrading MySQL client

好久没有升级我的MYSQL乐 没想到刚升级就出错 然后上网查了查 原来是这样子的 MySQL 4.1 and up uses an authentication protocol based on a password hashing algorithm that is incompatible with that used by older clients. .....
请使用以下两种方法之一

其一:

mysql> SET PASSWORD FOR
-> 'some_user'@'some_host' = OLD_PASSWORD('newpwd');

其二:

mysql> UPDATE mysql.user SET Password = OLD_PASSWORD('newpwd')
-> WHERE Host = 'some_host' AND User = 'some_user';
mysql> FLUSH PRIVILEGES;

你可能感兴趣的:(mysql,PHP,UP)