本文介紹了PHP 7.2.2 + mysql 8.0 PDO 給出:客戶端未知的身份驗證方法 [caching_sha2_password]的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!
問題描述
我使用的是 php 7.2.2 和 mysql 8.0.
I'm using php 7.2.2 and mysql 8.0.
當我嘗試使用正確的憑據進行連接時,出現此錯誤:
When I try to connect with the right credential I get this error:
PDOException::("PDO::__construct(): The server requested authentication method unknown to the client [caching_sha2_password]")
需要幫助來解決問題.
推薦答案
如果你想用 MySQL >= 8 又不關心caching_sha2_password
,安裝時選擇第二個選項即可.
If you want to use MySQL >= 8 and you don't care about caching_sha2_password
, just select the second option when you install.
這篇關于PHP 7.2.2 + mysql 8.0 PDO 給出:客戶端未知的身份驗證方法 [caching_sha2_password]的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!
【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!