mysql授了远程访问权限了 为什么还会出现host is not allowed to connect to this mysql server

mysql授了远程访问权限了 为何还会出现host is not allowed to connect to this mysql server我是新增一个

mysql授了远程访问权限了 为何还会出现host is not allowed to connect to this mysql server
我是新增一个ip地址授权的:
在服务器上授权
GRANT ALL PRIVILEGES ON *.* TO 'root'@' 我的ip' IDENTIFIED BY

'我的密码' WITH GRANT OPTION;

FLUSH PRIVILEGES;


本地连接报错:host is not allowed to connect to this mysql server

如果将"mysql" 数据库里的 "user" 表里的 "host" 项,从"localhost"改成"%" 则可以在本地连接远程了
但我觉得这样不安全,我只想让我本地这一台机器可以远程连接服务器数据库,为何 上面授权ip的方法还是报错啊,求大牛帮看下 哪里有错 需要如何更改? 跪谢!

[解决办法]
语句没什么问题

你看一下ipconfig看看是否是你的ip
[解决办法]
show grants 看一下你现在的用户和权限。