MYSQL 帮助:

A.2.3 Client does not support authentication protocol

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.

本文标题: MYSQL出现" Client does not support authentication "的解决方法

本文地址: http://www.cppcns.com/shujuku/mysql/37799.html

not support mysql_MYSQL出现quot; Client does not support authentication quot;的解决方法相关推荐

  1. ES使用org.elasticsearch.client.transport.NoNodeAvailableException: No node available 错误解决方法

    ES使用org.elasticsearch.client.transport.NoNodeAvailableException: No node available 错误解决方法 参考文章: (1)E ...

  2. 计算机服务 访问拒绝,Win7开机提示group policy client服务未能登录,拒绝访问的解决方法...

    我们在使用电脑的过程中,经常会遇到一些小问题,尤其是电脑开机之后的问题最为常见.近期有一位用户遇到电脑开机提示"group policy client服务未能登录,拒绝访问".那么 ...

  3. npm WARN cli npm v9.1.2 does not support Node.js v14.12.0. You should probably upgrade to解决方法

    [现象] C:\Users\Administrator>npm -v npm WARN cli npm v9.1.2 does not support Node.js v14.12.0. You ...

  4. FreeRADIUS整合微软活动目录做身份验证时报错“winbind client not authorized to use winbindd_pam_auth_crap”的解决方法

    FreeRADIUS使用微软活动目录做身份验证时,当客户端发起认证请求到radius服务器时,radius服务器报错"winbind client not authorized to use ...

  5. Win7登录时出现Group policy client 未启动无法登陆问题的解决方法

    WIN7加入WINDOWS 2003域环境,因为域用户环境改变,导致域用户登录下倒是很多软件不能用,所以试着想把本机用户环境复制到域用户下.先给域用户加入本机管理员组,然后域用户登录,复制一份用户下a ...

  6. isfull mysql_MySQL数据库之MySQL 出现 The table is full 的解决方法

    本文主要向大家介绍了MySQL数据库之MySQL 出现 The table is full 的解决方法 ,通过具体的内容向大家展现,希望对大家学习MySQL数据库有所帮助. 当我们要写入新数据而发生& ...

  7. apache AH01630: client denied by server configuration错误解决方法

    apache AH01630: client denied by server configuration错误解决方法 出现这个错误的原因是,apache2.4 与 apache2.2 的虚拟主机配置 ...

  8. client denied by server configuration错误解决方法

    出现这个错误的原因是,apache2.4 与 apache2.2 的虚拟主机配置写法不同导致. apache2.2的写法: <VirtualHost *:80>ServerName fdi ...

  9. not support mysql_MYSQL(解决方法):Client does not support authentication

    mysql4.1以上版本连接时出现Client does not support authentication protocol问题解决办法 shell> mysql Client does n ...

最新文章

  1. 为什么地磅的读数有进制么_谈谈二进制(三)——位运算及其应用
  2. 如何修改dedecms专题目录默认名称special
  3. 没有可用于当前位置的源代码
  4. jupyter python版本_Ubuntu Desktop 16.04 LTS 下成功配置Jupyter的两个python内核版本(2.7x,3.5x)...
  5. 基于Kaggle数据的词袋模型文本分类教程
  6. homework1: 印象深刻的错误
  7. LeetCode:砖墙【554】
  8. 安全云盘项目(三):3.1 Qt的工具_MVD架构和信号槽原理分析
  9. extract($_POST[])
  10. 《How to Write and Publish a Scientifc Paper》个人笔记
  11. 自己实现一个简易web服务器
  12. (转)FTP操作类,从FTP下载文件
  13. 显卡4k性能测试软件,碰上UHD都得跪 AN新一代显卡4K对比横评
  14. 计算机辅助设计排版,计算机辅助设计
  15. 实验3-5 查询水果价格
  16. python创建长度为20的列表_如何在python中创建固定大小列表?
  17. Android lunch分析以及产品分支构建
  18. mybatis带引号_mybatis-MyBatis
  19. sql获取group by最后一条记录
  20. 【总结】解决MAPPO(Multi-Agent PPO)问题技巧

热门文章

  1. ERDAS IMAGINE 2015安装步骤(绝对正确,不正确,我给你远程安装)
  2. 调试跟踪利器---strace
  3. ip变更会影响账号登陆吗_【教程】PUBG账号被盗导致封禁申诉解封教程
  4. [分布式训练] 单机多卡的正确打开方式:PyTorch
  5. uboot引导linux内核,u-boot启动内核的几种方式
  6. paylinks.php_毕业设计-基于PHP的网上购物网站系统设计
  7. java http 302重定向_Java 纯HTTP请求 禁止302自动重定向
  8. 新手攻略熔炉_我的世界攻略:生存模式新手攻略
  9. Git 存储原理及相关实现
  10. MySQL学习【第五篇SQL语句上】