码迷,mamicode.com
首页 > 数据库 > 详细

给数据库用户付权

时间:2017-08-30 19:44:28      阅读:208      评论:0      收藏:0      [点我收藏+]

标签:设定   ide   create   select   let   grant   权限   creat   ges   

grant select,insert,update,delete,create,drop on vtdc.employee to joe@10.163.225.87 identified by ‘123′;

给来自10.163.225.87的用户joe分配可对数据库vtdc的employee表进行select,insert,update,delete,create,drop等操作的权限,并设定口令为123。

mysql>grant all privileges on vtdc.* to joe@10.163.225.87 identified by ‘123′;
给来自10.163.225.87的用户joe分配可对数据库vtdc所有表进行所有操作的权限,并设定口令为123。

mysql>grant all privileges on *.* to joe@10.163.225.87 identified by ‘123′;
给来自10.163.225.87的用户joe分配可对所有数据库的所有表进行所有操作的权限,并设定口令为123

给数据库用户付权

标签:设定   ide   create   select   let   grant   权限   creat   ges   

原文地址:http://www.cnblogs.com/bass6/p/7454608.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!