VPS侦探论坛
标题:
请教个问题,关于MySQL8新的身份验证方法:caching_sha2_password
[打印本页]
作者:
dong2006
时间:
2021-1-29 22:29
标题:
请教个问题,关于MySQL8新的身份验证方法:caching_sha2_password
搭建建了个测试环境:mysql8.0.22 php7.4.13 nginx1.18
运行discuzx3.4报数据库连接错误,用phpMyAdmin连接mysql也无法登录,报
mysqli::real_connect(): The server requested authentication method unknown to the client [caching_sha2_password]
网上搜了大概就是MySQL默认用
新的身份验证方法:caching_sha2_password,按网上说的改用老的验证插件
mysql_native_password,确实能连接了。
想请教,如果mysql8还是用
caching_sha2_password,php msqli怎么配置才能用呢?网上说php7.4已经支持
caching_sha2_password了,但是搜一圈就是找不到方法
作者:
licess
时间:
2021-1-30 09:49
lnmp的mysql 8.0一直都是使用的老的mysql_native_password,除非自己修改了配置文件才会变成其他的
按
https://www.php.net/manual/zh/mysqli.requirements.php
官网说明的话应该是支持,如何使用不了解
欢迎光临 VPS侦探论坛 (https://bbs.lnmp.com/)
Powered by Discuz! X3.4