The server requested authentication method unknown to the client

meShell · 2019年08月25日 · 阅读 302

直接修改密码:

mysql> ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password';  

修改my.ini配置文件,改变密码加密方式:

[mysqld]
default_authentication_plugin = mysql_native_password

关于作者

全栈工程师

文章被阅读 53.0k
获赞 3