用户赋权和取消的sql,求正确的sql

http://t.zoukankan.com/loudon-p-3819797.html
根据这个执行
grant select,insert,update,delete on . to [test1@%] Identified by “abc”;
root密码的test2用户赋权给表
grant all on * to [test2@%] identified by “root”;
这个也不行


最后提示语法错误,求正确的sql

# 给test2用户赋予db1.t_name表的查询权限
GRANT SELECT ON db1.t_name TO test2@'%';
# 给test2用户复用所有表的权限
grant all privileges on *.* to test2@'%';

嗯嗯好的,好使了中间可以刷新下权限再操作flush privileges;每次都可以赋权