首页 > 数据库技术 > 详细

mysql 添加新用户 赋予权限

时间:2017-02-14 13:33:27      阅读:202      评论:0      收藏:0      [点我收藏+]

 

创建新用户

grant all privileges on *.* to ‘用户名‘@‘可登录主机‘ identified by ‘密码‘ with grant option;

grant all privileges on *.* to ‘test‘@‘%‘ identified by ‘root‘ with grant option;

 

赋予新用户权限:

grant select,insert,update,delete on *.* to ‘用户名‘@‘可登录主机‘ identified by "密码";

例:

grant select,insert,update,delete on *.* to ‘test‘@‘%‘ identified by "root";

刷新权限表

flush privileges;

mysql 添加新用户 赋予权限

原文:http://www.cnblogs.com/shiyalong/p/6397119.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!