Client does not support authentication protocol requested by server

    技术2022-05-11  112

            将mysql升级到5.x版本后,用客户端登录时出现了 Client does not support authentication protocol requested by server错误,搜索一下才知道原来是由于新旧版本的mysql的密码算法不同引起,解决方法如下:

           登录mysql,输入如下命令即可。

           mysql>SET PASSWORD FOR         >'root'@'localhost' = OLD_PASSWORD('newpassword');


    最新回复(0)