官方的解释:

MySQL 4.1 and up uses an authentication protocol based on a password hashing algorithm that is incompatible with that used by older clients. If you upgrade the server to 4.1, attempts to connect to it with an older client may fail with the following message:

shell>; mysql

Client does not support authentication protocol requested

by server; consider upgrading MySQL client

To solve this problem, you should use one of the following approaches:

Upgrade all client programs to use a 4.1.1 or newer client library.

When connecting to the server with a pre-4.1 client program, use an account that still has a pre-4.1-style password.

Reset the password to pre-4.1 style for each user that needs to use a pre-4.1 client program. This can be done using the SET PASSWORD statement and the OLD_PASSWORD() function:

mysql>; SET PASSWORD FOR

->; 'some_user'@'some_host' = OLD_PASSWORD('newpwd');

alternatively, use update and FLUSH PRIVILEGES:

mysql>; update mysql.user SET Password = OLD_PASSWORD('newpwd')

->; where Host = 'some_host' AND User = 'some_user';

mysql>; FLUSH PRIVILEGES;

Substitute the password you want to use for ``newpwd'' in the preceding examples. MySQL cannot tell you what the original password was, so you'll need to pick a new one.

Tell the server to use the older password hashing algorithm:

Start mysqld with the --old-passwords option.

Assign an old-format password to each account that has had its password updated to the longer 4.1 format. You can identify these accounts with the following query:

mysql>; select Host, User, Password FROM mysql.user

->; where LENGTH(Password) >; 16;

For each account record displayed by the query, use the Host and User values and assign a password using the OLD_PASSWORD() function and either SET PASSWORD or update, as described earlier.

For additional background on password hashing and authentication, see Section 5.5.9, "Password Hashing in MySQL 4.1".

Previous / Next / Up / Table of Contents

阅读(533) | 评论(0) | 转发(0) |

linux1251端口,#1251 - Client does not support authentication问题解决!相关推荐

  1. Navicat 远程连接docker容器中的mysql 报错1251 - Client does not support authentication protocol 解决办法

    Navicat 远程连接docker容器中的mysql 报错1251 - Client does not support authentication protocol 解决办法 1).容器中登录my ...

  2. “1251 – Client does not support authentication protocol requested by server;consider upgrading MySQL

    本文由 比特飞 原创发布,欢迎大家踊跃转载. 转载请注明本文地址:"1251 – Client does not support authentication protocol reques ...

  3. Navcat:解决1251 client does not support authentication ...问题

    出现问题如下: 解决方法: 1.查看用户信息 select host,user,plugin,authentication_string from mysql.user; 2.修改用户密码 更新use ...

  4. 终极解决navicat远程mysql8报错 1251 Client does not support authentication protocol requested by server

    朋友使用mysql8,跟我讲不能远程了,看了一下,环境变量没配, MYSQL_HOME=mysql安装bin目录 PATH追加%MYSQL_HOME% 配了环境变量还不行 于是发现一个惊天大秘密 就是 ...

  5. 【MySQL】Navicat 连接数据库出现1251 - Client does not support ... 问题的解决方法及ERROR 1045 (28000): Access deni...

    问题描述 1.Navicat 连接 MySQL时出现问题:1251 - client does not support authentication protocol requested by ser ...

  6. 【mysql】远程连接服务器数据库出现 Client does not support authentication protocol requested by server的解决方法

    前言 之前已经配好了本地数据库与云服务器上的数据库的连接,也能正常进行操作.几个月后某天打开navicat想打开此连接却弹出了个错误提示窗口,显示Client does not support aut ...

  7. mysql8.0client_navicat 连接mysql8.0 报错client does not support authentication

    navicat 连接mysql8.0 报错client does not support authentication,解决方法: 打开windows Powershell,输入以下命令 ,加红加粗的 ...

  8. Client does not support authentication protocol requested by server;

    Navicat连接MySQL Server8.0版本时出现Client does not support authentication protocol requested  by server:解决 ...

  9. Navcat:1251 client does not support ...问题

    Navcat ,1251 client does not support ...问题 1.查看用户信息 select host,user,plugin,authentication_string fr ...

最新文章

  1. c# usercontrol ,networkcomms3.0 Invoke总结
  2. AI基础:Pandas简易入门
  3. VTK:可视化算法之LOxSeeds
  4. 【java】Charset 字符集
  5. db2 创建样本数据库_db2创建数据库
  6. 等额本息和等额本金,哪个还款方式更划算?
  7. java包 类 方法_Java中包与包之间方法的调用及其关键字区分(基础)
  8. 现代软件工程系列 学生的精彩文章 (2) 到底是谁的 bug?
  9. Windows Server 2008 R2 主域控制器委派DNS到子域控控制器
  10. 在ASP.NET 2.0中操作数据:使用FormView 的模板
  11. python怎么画小海龟_python画图之“小海龟”turtle
  12. 传承中华美德,关注中老年大健康,育润奶粉敬老情浓
  13. Jenkins linux 操作系统一键部署多节点
  14. 从苹果2015年春季发布会看移动互联网的发展
  15. 草图vr3.6许可证服务器安装失败,VRay3.6无法获得许可-200
  16. 测试用例设计-淘宝购物车,微信发红包
  17. unity可以直接转h5吗_Unity对H5小游戏开发的支持—Project Tiny
  18. 码支付源码完整版-安装环境配置
  19. html+css仿QQ邮箱静态界面
  20. 巴菲特:我可以发2100万个巴菲特币|附视频

热门文章

  1. html加密文档如何打开,如何打开docx文件 在弹出窗口中选择加密的文件
  2. 如何做到招聘要求中的「要有扎实的 Java 基础」
  3. 联通高管频频出走:通信业已成鸡肋?
  4. aspnet+C#房屋按揭贷款管理系统
  5. clisp 中的 cons
  6. android手机防盗图片,android手机防盗措施介绍【图文】
  7. 美国人用什么android手机,美国人也爱大屏手机,三星们笑了
  8. win7硬盘安装ubuntu
  9. Mysql、Oracle——面试题汇总
  10. 浏览器兼容性—学习笔记