1、问题Navicat连接数据库异常问题
MySQL 5.7 Access denied for user ‘root’@‘localhost’ (using password YES)
2、原因
用户没有远程连接的权限
3、解决办法
首先排查mysql库中user表中的数据
use mysql;
select user,host from user;
grant all privileges on *.* to 'samRsa'@'*' identified by 'mima' with grant option;
#samRsa 为用户
#mima 为密码
flush privileges;