请教一下,各位大佬!
php吧
全部回复
仅看楼主
level 1
秒批 楼主
在本地安装Discuz的时候出现,如图!
数据库连接错误
The server requested authentication method unknown to the client
Warning: mysqli::__construct(): The server requested authentication method unknown to the client [caching_sha2_password] in /Library/WebServer/Documents/install/include/install_function.php on line 66
Warning: mysqli::__construct(): (HY000/2054): The server requested authentication method unknown to the client in /Library/WebServer/Documents/install/include/install_function.php on line 66
2022年01月27日 02点01分 1
level 1
秒批 楼主
在百度搜索到:
发生这种错误,是由于MySQL 8默认使用了新的密码验证插件:caching_sha2_password,而之前的PHP版本中所带的mysqlnd无法支持这种验证。
PHP 7.2.8和PHP 7.1.20已经可以支持caching_sha2_password,直接连接MySQL 8。
这张图片是我本地的PHP截图。
Loaded plugins mysqlnd,debug_trace,auth_plugin_mysql_native_password,auth_plugin_mysql_clear_password,auth_plugin_sha256_password
请问这种PHP版本中所带的mysqlnd无法支持这种验证吗?
谢谢了!
2022年01月27日 03点01分 2
@CKT小凌 请问大佬有教程吗?能给个连接吗?谢谢了!
2022年01月27日 05点01分
@CKT小凌 非常感谢了!
2022年01月27日 05点01分
level 4
为啥不自己开发一套bbs,很简单啊。discus都是十几年前的产物了,而且不一定支持php8跟mysql8,自己手写很快就能开发出来,而且后期可以对接微信,小程序,等等,多方便
2022年01月27日 03点01分 4
我是代码小白 啥也不懂啊!
2022年01月27日 05点01分
level 12
5.2 5.6
2022年01月27日 04点01分 5
谢谢了!
2022年01月27日 05点01分
level 10
降级MySQL版本
2022年01月27日 14点01分 6
非常感谢了!
2022年01月28日 11点01分
level 13
3.4版本,最佳环境,PHP7.4,MySQL5.7,
2022年01月28日 05点01分 7
非常感谢了!在服务器搭建我会。在本地安装搞不明白了[笑眼]
2022年01月28日 11点01分
level 1
秒批 楼主
在这里向前面回复的各位网友,致谢了!!![哈哈]
问题解决了![哈哈]
2022年02月09日 02点02分 8
1