mysqli_real_connect():服务器请求客户端未知的身份验证方法[caching_sha2_password]

时间:2019-06-16 12:11:12

标签: phpmyadmin xampp

当我打开phpmyadmin时,它在页面底部显示错误,它可以正常连接,但是有错误。我之前收到此错误,但是它不允许打开管理页面,所以我通过更改auth方法对其进行了修复:

ALTER USER root IDENTIFIED WITH mysql_native_password BY 'PASSWORD';

现在仅在登录后出现错误:

mysqli_real_connect(): The server requested authentication method unknown to the client [caching_sha2_password]
mysqli_real_connect(): (HY000/2054): The server requested authentication method unknown to the client
Connection for controluser as defined in your configuration failed.

在清除浏览器cookie之前,它一直运行良好。我仍然可以使用phpmyadmin。

这也显示在主页上:

The phpMyAdmin configuration storage is not completely configured, some extended features have been deactivated. Find out why. 
Or alternately go to 'Operations' tab of any database to set it up there.

0 个答案:

没有答案