当前位置: 首页 > database > 正文

mysql OLD_PASSWORD’s problem

In my mysql slave and master’s
i meet a problem:
[MysqlDb.connectDB]java.sql.SQLException: Client does not support authentication protocol requested by server; consider upgrading MySQL client

this is a problem of mysql update version 4.1 and more!

to sovle it , we can do this

1st:
mysql> SET PASSWORD FOR
    -> ‘some_user’@’some_host’ = OLD_PASSWORD(‘newpwd’);
2nd:
mysql> UPDATE mysql.user SET Password = OLD_PASSWORD(‘newpwd’)
    -> WHERE Host = ‘some_host’ AND User = ‘some_user’;
mysql> FLUSH PRIVILEGES;

本文固定链接: https://www.2hei.net/2008/08/25/mysql_old_passwords_problem/ | 2hei.net

该日志由 u2 于2008年08月25日发表在 database 分类下,
原创文章转载请注明: mysql OLD_PASSWORD’s problem | 2hei.net
关键字:

报歉!评论已关闭.