首页 > 数据库 >1251 - Client does not support authentication protocol requested by server; consider upgrading MySQL

1251 - Client does not support authentication protocol requested by server; consider upgrading MySQL

时间:2024-07-27 17:17:47浏览次数:11  
标签:requested protocol consider mysql MySQL 加密 password

错误记录:

1251 - Client does not support authentication protocol requested by server; consider upgrading MySQL client

错误原因:

mysql8 之前的版本中加密规则是mysql_native_password,而在mysql8之后,加密规则是caching_sha2_password。

解决方案:

解决:①升级navicat驱动;②把mysql用户登录密码加密规则还原成mysql_native_password。

方式②需要Win+R,输入cmd打开命令行,进入MySQL的bin目录,然后输入mysql -u root -p,输入密码登录。按照以下命令修改即可。

ALTER USER 'root'@'localhost' IDENTIFIED BY 'password' PASSWORD EXPIRE NEVER; #修改加密规则
 
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password'; #更新一下用户的密码 
 
FLUSH PRIVILEGES; #刷新权限

标签:requested,protocol,consider,mysql,MySQL,加密,password
From: https://www.cnblogs.com/hwrex/p/18327210

相关文章

  • BGP(Border Gateway Protocol,边界网关协议)劫持是指恶意或非法地篡改BGP路由信息的行为
    BGP(BorderGatewayProtocol,边界网关协议)劫持是指恶意或非法地篡改BGP路由信息的行为。BGP是互联网上用来交换路由信息的主要协议之一,它负责决定网络数据包应该如何从一个网络路由到另一个网络。BGP劫持可以分为两种主要类型:前缀劫持(PrefixHijacking):在前缀劫持中,攻击者发送......
  • 基于注解注册连接的Thrift框架(03)——TProtocol
    前情提要之前介绍了TProcessor的同步和异步实现,也说明了TAsyncMethodCall中的状态循环以及它是如何和TServer进行交互的。TProtocolTProtocol是一个抽象类,主要做了两件事情:绑定一个TTransport定义一系列读写消息的编解码接口。包括两类,一类是复杂数据结构比如readMessageBe......
  • idea 出现[08S01] 驱动程序无法通过使用安全套接字层(SSL)加密与 SQL Server 建立安全
    目录1.问题所示2.原理分析3.解决方法1.问题所示idea配置Database的时候,出现如下问题:Failed  Copy SearchError Troubleshooting[08S01]驱动程序无法通过使用安全套接字层(SSL)加密与SQLServer建立安全连接。错误:“Theserverselectedprotoco......
  • This function or variable may be unsafe. Consider using scanf_s instead报错-快速
    文章目录问题描述:问题解决:1、安装软件2、更改newc++file.cpp文件3、新建项目验证问题描述:vs2019运行含有scanf函数的代码时,实例代码如下:会出现如下图所示报错:#问题剖析:首先说结论,因为scanf是标准C提供的函数,但是vs2019无法识别导致报错,从报错的的代码可以......
  • maven mvn install 报错: unable to find valid certification path to requested targ
    [INFO]---maven-surefire-plugin:2.22.2:test(default-test)@platform---[INFO]Downloadingfromalimaven:http://maven.aliyun.com/repository/public/org/apache/maven/surefire/maven-surefire-common/2.22.2/maven-surefire-common-2.22.2.pom[INFO]---------......
  • nuxt3启动报错The requested module 'file://C:/Users/acer/node_modules/ufo/dist/in
    背景进行某些配置后,启动nuxt3的测试服务器报错。解决下面这个目录并不是npm的全局目录C:/Users/acer/node_modules我的解决办法是直接使用npm或者cnpm全局安装ufo这个包,然后把这个包移到该位置。#npm全局安装路径C:\Users\%USERNAME%\AppData\Roaming\npm\node_modules......
  • nginx https配置& proxy_protocol协议配置
    server{ listen8100proxy_protocol; set_real_ip_from0.0.0.0/0; real_ip_headerproxy_protocol; location/{ proxy_set_headerX-Real-IP$proxy_protocol_addr;proxy_set_headerX-Forwarded-For$proxy_protocol_addr; proxy_passh......
  • 解决unable to find valid certification path to requested target
    昨天访问供应商提供的接口还是正常的,今天早上上班却被告知系统功能总是提示错误,完全用不了,查询系统日志以及本地重新测试发现,调用供应商提供的接口提示unabletofindvalidcertificationpathtorequestedtargetjavax.net.ssl.SSLHandshakeException:GeneralOpenSslEngine......
  • Cannot assign requested address 问题排查
    Cannotassignrequestedaddress问题排查背景工单服务调用了我提供的自动化接口,但是显示调用失败,失败原因:Cannotassignrequestedaddress.排查过程根据提示猜测是端口用尽.登录机器查看:>>>netstat-nap|grepTIME_WAIT|awk'{print$5}'|sort|uniq-c|......
  • 推送代码报错:fatal: unable to access 'https://gitlab.com/xxx/xxx.git/': The reque
    错误还原#gitlab使用Bitbucket注册登录,执行gitpush命令,使用token验证报错如下dogle@DESKTOP-KI961IKMINGW64/d/workspaces/xxx(main)$gitpushremote:HTTPBasic:Accessdenied.Theprovidedpasswordortokenisincorrectoryouraccounthas2FAenabledan......