增加一个用户,密码为空,在test库任何对象上有增,删,改,查 权限

grant select,insert,update,delete on test.* to test1@localhost Identified by "";

 

连接:

mysql -u test1 -p;

password:

 

连接后只能use test;

 

增加一个用户,任何地方都可连接

grant select,insert,update,delete on test.* to test1@"%" Identified by "abc";

posted on 2014-12-02 23:27  infosz.com  阅读(165)  评论(0)    收藏  举报