关于php7.3.3 连接mysql8 出现 The server requested authentication method unknown to the client

主要原因 是因为 mysql 8 升级了密码的验证方式 caching_sha2_password, 之前一直是mysql_native_password方式 不过  我很好奇 为什么php都升级到7.3.3了,为什么还不支持caching_sha2_password ,无语。 解决办法: 1.找到mysql的配置文件my.cnf,我的配置文件位置在   /usr/local/etc/my.cnf
相关文章
相关标签/搜索