几分钟前,我做了很多不必要的举动。我想将密码更改为本地主机上的root用户(我使用WAMP的任何MYSQL版本是5.7.21),并且选择了“ SHA-256”选项,现在我的PHPMyAdmin面板中出现以下错误:
#2054 - The server requested authentication method unknown to the client
mysqli_real_connect(): The server requested authentication method unknown to the client [sha256_password]
mysqli_real_connect(): (HY000/2054): The server requested authentication method unknown to the client
我在本地服务器上有一个wordpress数据库,主要我想要恢复的只是它,或者也可以更改root密码来执行任何操作...我已经在这里阅读了一些问题以及更改方法
default-authentication_plugin = mysql_native_password
“ my.ini”中的不适用于我。我尝试使用
运行init文件 SET PASSWORD FOR 'root'@'localhost' = PASSWORD('MyNewPass');
,它也不起作用。还有其他方法可以更改我的密码或仅从中恢复我的wp数据库吗?