• linkedu视频
  • 平面设计
  • 电脑入门
  • 操作系统
  • 办公应用
  • 电脑硬件
  • 动画设计
  • 3D设计
  • 网页设计
  • CAD设计
  • 影音处理
  • 数据库
  • 程序设计
  • 认证考试
  • 信息管理
  • 信息安全
菜单
linkedu.com
  • 网页制作
  • 数据库
  • 程序设计
  • 操作系统
  • CMS教程
  • 游戏攻略
  • 脚本语言
  • 平面设计
  • 软件教程
  • 网络安全
  • 电脑知识
  • 服务器
  • 视频教程
  • MsSql
  • Mysql
  • oracle
  • MariaDB
  • DB2
  • SQLite
  • PostgreSQL
  • MongoDB
  • Redis
  • Access
  • 数据库其它
  • sybase
  • HBase
您的位置:首页 > 数据库 >Mysql > MYSQL出现" Client does not support authentication "

MYSQL出现" Client does not support authentication "

作者:匿名 字体:[增加 减小] 来源:互联网 时间:2018-12-05

匿名通过本文主要向大家介绍了MYSQL出现,Client,does,not,supp等相关知识,希望本文的分享对您有所帮助

MYSQL出现 Client does not support authentication 的解决方法

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:
    1. Start mysqld with the --old-passwords option.
    2. 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 .

分享到:QQ空间新浪微博腾讯微博微信百度贴吧QQ好友复制网址打印

您可能想查找下面的文章:

  • MYSQL出现" Client does not support authentication "
  • mysql出现“Incorrect key file for table”处理方法

相关文章

  • 2018-12-05重命名SQLServer数据库的方法
  • 2018-12-05mssql 指定字段编号sql语句
  • 2017-05-11MySql like模糊查询通配符使用详细介绍
  • 2018-12-05MySQL数据库的shell脚本自动备份详情介绍
  • 2018-12-05关于MySQL的FULLTEXT实现全文检索需要注意的事项
  • 2017-05-11mysql自动增量备份的实例方法(本地备份与远程备份)
  • 2017-05-11mysql 截取指定的两个字符串之间的内容
  • 2018-12-05MySQL视图的作用详解(二)-过滤数据、计算字段、更新视图
  • 2018-12-05SQL2008中SQL应用之-锁定(locking) 应用分析
  • 2018-12-05mysql 协议的processInfo命令包及解析

文章分类

  • MsSql
  • Mysql
  • oracle
  • MariaDB
  • DB2
  • SQLite
  • PostgreSQL
  • MongoDB
  • Redis
  • Access
  • 数据库其它
  • sybase
  • HBase

最近更新的内容

    • 有关decimal类型的文章推荐10篇
    • 关于MySQL的FULLTEXT实现全文检索需要注意的事项
    • 【MySQL 09】常用函数
    • windows下mysql忘记root密码的解决方法
    • MySQL数据库存储引擎和分支现状分析
    • mysql的日期和时间函数
    • 浅谈MySQL漂流记(六)
    • 介绍一个简单的数据库Database 教程(二)
    • MySQL数据库与表的基本命令梳理
    • MySQL中关于浮点型转换成字符型出现的一些问题解决

关于我们 - 联系我们 - 免责声明 - 网站地图

©2020-2025 All Rights Reserved. linkedu.com 版权所有