先执行下面这句话:
grant all on *.* to test@'%' identified by 'test';
再刷新权限表:
flush privileges;
然后从客户端登陆(密码为test):
mysql -h128.1.30.100 -uscc -p
enter password:****

解决方案 »

  1.   

    来晚啦。数学家说的对,我遇到过楼主说的情况,主要是刷新权限的问题,我曾经先进入远程的MYSQL,手工添加了MYSQL\HOST和MYSQL\USER,但是还是和楼主的情况一样。后来我发现刷新一下权限。flush privileges;应该就好了。
      

  2.   

    靠,来晚一步,沙发的是正解!好多分啊~~grant all privileges on *.* to mysql@'%' identified by "password";
      

  3.   

    grant all privileges on *.* to 'username'@'%' identified by "password";
    set password for 'username'@'%'=OLD_PASSWORD('password');
    第二句是为了消除版本的差异的。
      

  4.   

    mysql -h128.1.30.100 -u chen -p chen
    -p后面是不能有空格.当然也许并不能解决你的问题.