请教如何去解决mysql这个错误?
Create schema tss_0_5_0_55;
grant all on tss_0_5_0_55.* to test@tddserver identified by "test"; 
我在本地上连接tddserver服务器,然后执行
grant all on tss_0_5_0_55.* to test@tddserver identified by "test"; 
语句,出现了以下的错误:
ERROR 1044 (42000) at line 2: Access denied for user 'root'@'%' to database 'tss_0_5_0_55'
请教是什么原因造成的?
我把
grant all on tss_0_5_0_55.* to test@tddserver identified by "test";
改为
grant select,create,drop on tss_0_5_0_55.* to test@tddserver identified by "test";
是可以执行的,但是赋所有权限是不行的,请教是什么原因??

解决方案 »

  1.   

    你需要在mySQL所在的主机上直接登录。 然后给root@% 授予相应权限,即root可以在所有IP地址范围内具备相应授权,系统默认仅授权给root@localhost
      

  2.   

    在服务器上直接用ROOT登录,授权试试
      

  3.   

    在本机以root权限登陆有什么用呀。在远程以root的权限登陆,再以root权限登陆数据库,然后授权,看看。