PHP错误:SQLSTATE[HY000] [2054] The server requested authentication method unknown to the client
<p>PHP系统连接Mysql8数据库系统,页面上报了如下错误:</p>
<h2 id="articleContentId">SQLSTATE[HY000] [2054] The server requested authentication method unknown to the client</h2>
<p> 原因:是由于MySQL 8默认使用了新的密码验证插件:caching_sha2_pa