首页
学习
活动
专区
工具
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...但使用`select user,host,plugin`看到的加密方式为mysql_native_password 查看zabbix日志, 未发现连接报错问题, 抓包发现zabbix是能正常连接mysql...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

55641

MySQL 8.0.4 RC:使用 auth_socket用户要小心!

在MySQL 8.0.4 RC中,default_authentication_plugin被更改为caching_sha2_password,不知道他们是否解决了这个bug。...之后,有必要恢复default_authentication_plugin,因为它在安装过程中更改为mysql_native_password: $ low_level_make_sandbox -d...8.0.4-rc --datadir_from=script \   -b ~/opt/mysql/mysql-8.0.4-rc -i 8.0 -P 20804 $ sed -Ei 's/^(default_authentication_plugin...auth_socket插件并创建一个用户来使用它来标识自己: mysql [localhost] {root} ((none)) > show global variables like 'default_authentication_plugin...: Error in server handshake 虽然在MySQL 8.0.4 RC中有许多重大的改进和新特性,但是使用auth_socket插件的任何系统都需要确保它们强制使用default_authentication_plugin

93420

MySQL使用多因素身份认证

此外,企业版的服务器端还支持使用“authentication_fido”插件、通过外部设备进行验证。...例如,authentication_policy = '*,authentication_fido,’,默认值为’*,,’表示使用单因素认证,并且支持使用2因素及3因素认证。...' 允许使用2因素认证,第一个因素可以使用任意方法,第二因素必须使用指定的认证插件 'auth_plugin,*,' 允许使用2因素或3因素认证,第一个因素必须使用指定的认证插件 'auth_plugin...,' 允许使用单因素或2因素认证,第一个因素必须使用指定的认证插件 'auth_plugin,auth_plugin,auth_plugin' 允许使用3因素认证,并且必须使用指定的认证的插件 注意:...正确的使用方法如下,本例第一个因素使用caching_sha2_password,第二个因素使用authentication_windows。

1.2K20
领券