首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往

zabbix报错The server requested authentication method unknown to the client

环境 mysql 8.0.x zabbix 5.0.x php 7.2.0 报错 The server requested authentication method unknown to the client..._password了 图片 但我密码是使用的mysql_native_password加密的啊 这就得回顾下之前mysql连接过程了, 可以使用之前那个流量镜像脚本观察(真好用...), 连接的时候server...发送的第一个包就包含密码插件信息(select @@default_authentication_plugin;) 图片 解决办法 方法1: 设置default_authentication_plugin...为mysql_native_password (需要重启) 方法2: 升级php版本 (比如7.2.8) 总结 authentication method相关报错基本上都是caching_sha2_...password的问题, 所以建议安装mysql的时候就设置default_authentication_plugin=caching_sha2_password 可以避免很多问题.

72641

解决连接MySQL时报The server requested authentication method unknown to the client”错误

1,问题描述 最近建了个 Laravel 项目,当配置好 MySQL 数据库进行请求时,页面报如下错误: SQLSTATE[HY000] [2054] The server requested authentication...method unknown to the client (SQL: select * from user where id = 3) Previous exceptions SQLSTATE[HY000...] [2054] The server requested authentication method unknown to the client (2054) PDO::__construct():...The server requested authentication method unknown to the client [caching_sha2_password] (0) 2,问题原因 (...,执行如下命令添加配置文件: 1 sudo vi /etc/my.cnf (2)按下 i 进入编辑模式,添加如下内容(把加密模式改成旧的): 1 2 [mysqld] default_authentication_plugin

1.2K00
  • 您找到你想要的搜索结果了吗?
    是的
    没有找到
    领券