MYSQL4.1版本的问题

发表于:2007-07-02来源:作者:点击数: 标签:
好久没有升级我的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;

 -->

原文转自:http://www.ltesting.net