“The server requested authentication method unknown to the client.”的解决方案
本文由 比特飞 原创发布,欢迎大家踊跃转载。
转载请注明本文地址:“The server requested authentication method unknown to the client.”的解决方案 | .Net中文网。
另外可参考文章:“1251 – Client does not support authentication protocol requested by server;consider upgrading MySQL client.”的解决方案。
描述
最近在连接 mysql 8.0 数据库时,遇到如下的报错信息:
The server requested authentication method unknown to the client.
解决
发生这个问题的原因是在 mysql 8.0 以后,caching_sha2_password是默认的身份验证插件,而不是以往的mysql_native_password。在 MySQL Command Line 工具下修改 mysql 的默认身份验证插件即可。
mysql - uroot - p
--使用用户名密码登录 mysql
USE mysql;
--使用 mysql 数据库
ALTER USER root@localhost IDENTIFIED WITH mysql_native_password BY '12345678';
--修改身份验证插件,假设用户名为 root,密码为 12345678(请改为你自己的用户名和密码)。
FLUSH PRIVILEGES;
--使更改生效
本文由 比特飞 原创发布,欢迎大家踊跃转载。
转载请注明本文地址:“The server requested authentication method unknown to the client.”的解决方案 | .Net中文网。
“The server requested authentication method unknown to the client.”的解决方案相关推荐
- php7链接数据库报错The server requested authentication method unknown to the client
php7链接数据库报错The server requested authentication method unknown to the client 主要原因 是因为 mysql 8.0 升级了密码 ...
- PHP连接mysql8.0出错“SQLSTATE[HY000] [2054] The server requested authentication method unknown to”的解决办法
错误信息 SQLSTATE[HY000] [2054] The server requested authentication method unknown to- 这个错可能是mysql默认使用ca ...
- PHP连接mysql8.0出错“SQLSTATE[HY000] [2054] The server requested authentication method unknow........
这个错可能是mysql默认使用 caching_sha2_password 作为默认的身份验证插件,而不再是 mysql_native_password ,但是客户端暂时不支持这个插件导致的. 解决方 ...
- adb server version (31) doesn‘t match this client (39) 解决方案
adb server version (31) doesn't match this client (39) 解决方案 参考文章: (1)adb server version (31) doesn't ...
- navicat连接pgsql报错:authentication method 10 not supported
navicat连接pgsql报错:authentication method 10 not supported 解决方案:找到pgsql的安装目录下的pg_hba.conf文件 用文本编辑器打开后做如 ...
- no supported authentication method异常
修改TortoiseGit 或者 git 路径 或者公钥密钥路径,异常:no supported authentication method 修改方法: 首先找到项目 项目右键 TortoiseGit ...
- MySQL 错误:2003 - Can‘t connect to MySQL server on ‘localhost‘ (10061 “Unknown error“)
错误信息: 2003 - Can't connect to MySQL server on 'localhost' (10061 "Unknown error") 错误原因: My ...
- mysql authentication_MySQL数据库之MySQL 8.0 安装时 Authentication Method
本文主要向大家介绍了MySQL数据库之MySQL 8.0 安装时 Authentication Method ,通过具体的内容向大家展现,希望对大家学习MySQL数据库有所帮助. 1. 使用强密码加密 ...
- appium+python自动化45-夜神模拟器连不上(adb server version (36) doesn't match this client (39); killing...)...
前言 最新下了个最新版的夜神模拟器,然后adb devices发现连不上模拟器了,报adb server version (36) doesn't match this client (39); ki ...
最新文章
- 用Python解“分段计算居民水费”题
- jenkins 入门教程(下)
- Java初学者都应该搞懂的六个问题
- LeetCode 151. 翻转字符串里的单词(栈)
- 怎样看懂Oracle的执行计划
- 【OCP|052】OCP题库更新,052最新考题及答案整理-第10题
- sap的工作日历_ABAP-有关日期的SAP函数使用(日历)
- 基于单片机的数字频率计设计
- linux配置静态ip命令,Linux设置静态IP地址
- 光耦w314的各引脚图_常用光耦型号代换大全
- html- 颜色代码
- matlab floor函数用法,matlab中fix, floor, ceil, round 函数的使用方法
- python 重命名的方法,python 怎么重命名文件
- PLC通讯之串口转以太网/WIFI的透传模块(DTU)的专用OPC软件和DLL通讯组件
- bitblt和getpixel哪个更效率
- 808计算机基础考试时间,成都信息工程大学808计算机基础2020年考研大纲
- 计算机毕业设计Java后勤管理系统(源码+系统+mysql数据库+lw文档)
- Unity——用代码实现序列帧动画
- 《华尔街》观后笔记9——拯救危机
- 高并发高流量网站架构详解