我用PHPMyAdmin为数据库设置了一个set服务器,但我的一个节点使用ed25519插件对用户进行身份验证。默认情况下,PhPMA不允许我使用这个插件:
mysqli::real_connect():服务器请求的身份验证方法客户端client_ed25519 mysqli::real_connect():(HY000/2054):服务器请求客户端未知的身份验证方法
在这种模式下可以使用phpMyAdmin吗?
发布于 2021-11-06 15:06:59
要解决此问题,需要将以下代码添加到/etc/mysql/my.cnf
[client]
default-character-set=utf8
[mysql]
default-character-set=utf8
[mysqld]
collation-server = utf8_unicode_ci
character-set-server = utf8
default-authentication-plugin=mysql_native_password您还需要使用mysql中的以下代码更新用户身份验证方法
alter user 'username'@'localhost' identified with mysql_native_password by 'password';通过个人MySQL密码更改“密码”
https://stackoverflow.com/questions/69864414
复制相似问题