第一种方法:
mysql> GRANT SELECT,INSERT,UPDATE,DELETE,CREATE,DROP
-> ON <dbname>.*
-> TO <username>@<host name>
-> IDENTIFIED BY '<password>';
where <dbname> is the name of the database you are tyring to
connect to, <username> is the username of the user trying to
connect to the database, <host name> the name of the host (in
your case the XXX host) and <password> the password of the user.
第二种方法:
通过客户端软件设置用户的主机以及权限,
文章来源:
http://blog.163.com/ccbobo_cat/blog/static/32099462200952925050579
posted on 2009-06-29 14:51
C.B.K 阅读(1555)
评论(0) 编辑 收藏