【MySql异常备忘】Client does not support authentication protocol requested by server

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

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

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

你可能感兴趣的:(【MySql异常备忘】Client does not support authentication protocol requested by server)