mysql root进去
添加用户并授权:
(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";
记住之后要刷新privileges
flush privileges;
阅读(818) | 评论(0) | 转发(0) |