原文:php連接mysql報錯The server requested authentication method unknown to the client

php . 連接mysql . 報錯:The server requested authentication method unknown to the client 是因為mysql 使用了新的密碼驗證插件:caching sha password,而在php . 並不支持這種方式。 解決辦法: .升級php .修改mysql的配置文件,my.ini 找到mysqlId下的default aut ...

2020-06-05 20:10 0 2666 推薦指數:

查看詳情

The server requested authentication method unknown to the client

對於這個問題,我看了很多文章,基本上都是清一色的修改mysql配置,然后再用命令行設置,而出現這種問題的原因是因為這個: 發生這種錯誤,是由於MySQL 8默認使用了新的密碼驗證插件:caching_sha2_password,而之前的PHP版本中所帶的mysqlnd無法支持這種驗證 ...

Fri Sep 20 21:04:00 CST 2019 0 800
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM