我已经安装了MySQL 8.0服务器和phpMyAdmin,但是当我尝试从浏览器访问它时,会发生以下错误:
#2054 - The server requested authentication method unknown to the client
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
Run Code Online (Sandbox Code Playgroud)
我想它必须与实施的强密码和MySQL版本的相对新鲜度有关.
但我对最先进的驱动程序和连接配置一无所知.
有人遇到同样的问题并解决了吗?:d
使用apt安装编辑
apt-get install mysql-server phpmyadmin
Run Code Online (Sandbox Code Playgroud)