navicat远程连接报1045 access denied for user'root'@'ip'(using pasword:yes".............

这个其实很简单,授权就行了。如下

1、GRANT ALL PRIVILEGES ON *.* TO'root'@'%' IDENTIFIED BY 'root' WITH GRANT OPTION;
2、flush privileges;

但新版本的5.7中,在执行第一步的时候会报错,ERROR 1819 (HY000): Your password does not satisfy the current policy requirements

说密码太简单。做为测试也没有必要把密码弄的很复杂,所以我们就要改密码规则

  1、set global validate_password_policy=0;

  2、set global validate_password_length=1;

然后再执行 前面的操作就OK了。

posted @ 2018-01-25 13:46  莫为  阅读(1436)  评论(0编辑  收藏  举报