意思是你当前的用户没有连接MySQL的权限
-
在 Linux 里面链接数据库
-
修改当前账号的权限
update mysql.user set user.host='%' where user.user='root';
flush privileges;
然后就可以连接MySQL了。
如果继续报错:1251 -Client does not support authentication protocol requested by server consider upgrading MYSQL client
请看这个连接:https://blog.csdn.net/qq_39408664/article/details/118728976