centos7新安装完的mysql,用navicat连接报错。
1.Host is not allowed to connect to this MySQL server
1.1解决办法
将host127.0.0.1改为%
改完后重新连接出现问题2
2.Access denied for user (using password:YES)
2.1解决办法:
将已设置密码的host改为%即可。该处localhost已设置密码
host字段唯一性,将原来的host恢复为127.0.0.1
至此可以正常连接到mysql了。