发文章
发文工具
撰写
网文摘手
文档
视频
思维导图
随笔
相册
原创同步助手
其他工具
图片转文字
文件清理
AI助手
留言交流
这个错可能是mysql默认使用 caching_sha2_password作为默认的身份验证插件,而不再是 mysql_native_password,但是客户端暂时不支持这个插件导致的。
caching_sha2_password
mysql_native_password
编辑 my.cnf文件,更改默认的身份认证插件。
my.cnf
$ vi /etc/my.cnf
在 [mysqld]中添加下边的代码
[mysqld]
default_authentication_plugin=mysql_native_password
然后重启mysql
$ service mysqld restart
来自: 中间件 > 《LINUX》
0条评论
发表
请遵守用户 评论公约
php连接mysql时报错:SQLSTATE[HY000] [2002] No such file or directory
php连接mysql时报错:SQLSTATE[HY000] [2002] No such file or directory.mysql连接时报错:SQLSTATE[HY000] [2002] No such file or directory.AndyMacBookPro:~ andy$ sudo find / -name mysql.sock....
Navicat连接MySQL Server8.0版本时出现Client does not support authentication protocol requested by server;解决如下
Navicat连接MySQL Server8.0版本时出现Client does not support authentication protocol requested by server;Navicat连接MySQL Serve...
[解决方案]SQLSTATE[HY000]: General error: 2006 My...
[解决方案]SQLSTATE[HY000]: General error: 2006 My...[解决方案]SQLSTATE[HY000]: General error: 2006 MySQL server has gone away.在Mysql客户端中, 通过 SHOW VARIABLES; 语句可以查看Mysql系统...
1251 - Client does not support authentication protocol requested by server; consider upgrading MySQL
consider upgrading MySQL.MySQL-Front faq-it.org/mysql/ 我在用root帐户连接mysql数据库时提示有错误如下:1251 - Client does not support authentication protocol requested by server...
服务器错误代码和消息
. 错误:1015 SQLSTATE: HY000 (ER_CANT_LOCK). 错误:1407 SQLSTATE: 42000 (ER_SP_BAD_SQLSTATE). 错误:1442 SQLSTATE: HY000 (ER_CANT_UPDATE_USED_TABLE_IN_SF_OR_TRG). ...
declare handler 声明异常处理的语法
declare handler 声明异常处理的语法。DECLARE{EXIT | CONTINUE}HANDLER FOR{error-number | SQLSTATE error-string | condition}SQL st...
MySQL 数据完整性
MySQL 数据完整性。-- 单个字段的主键CREATE TABLE 表名(字段名 数据类型 PRIMARY KEY);-- 多个字段组合的主键CREATE TABLE 表名(字段名1 数据类型,字段名2 数据类型,.....PRIMARY KEY(字段名1, 字段名...
Mysql 解决1251- Client does not support authentication protocol requested by server...的问题
Mysql 解决1251- Client does not support authentication protocol requested by server...的问题。方法2.把mysql用户登录密码加密规则...
通用邮件申请空间英文模板
Request Free HostingHi,Let me be the first to request free hosting account.Name: Ruby LI Email: xxx@yahoo.com Contact by: Email Domain name: ruby.sea-host.net Username: Ruby How you found...
微信扫码,在手机上查看选中内容