mysql添加用户并授权
转自:http://episode.iteye.com/blog/113488添加用户并授权:
(1)添加任何机器都能登录的用户
GRANT ALL PRIVILEGES ON dbName.* TO test@"%" identified by "1111";
(2)添加172.16.184.233机器登录的用户
GRANT ALL ON dbName.* TO test@172.16.184.233 IDENTIFIEDBY "1111";
(3)添加 一个用户 授 增 删 改 查 的权限。
GRANT SELECT,INSERT,DELETE,UPDATE ON dbName.* TO test@% IDENTIFIEDBY "1111";