這幾天嘗試使用 MySQL 8 來作為開發用的資料庫,結果發現我的 PHP 無法連線上資料庫,連帶著 phpMyAdmin 也無法使用。
我看到的錯誤訊息是這樣的:
mysqli::real_connect(): (HY000/2054): The server requested authentication method unknown to the client
這幾天嘗試使用 MySQL 8 來作為開發用的資料庫,結果發現我的 PHP 無法連線上資料庫,連帶著 phpMyAdmin 也無法使用。
我看到的錯誤訊息是這樣的:
mysqli::real_connect(): (HY000/2054): The server requested authentication method unknown to the client