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

mysql 查询权限设置

时间:2014-12-15 22:02:53      阅读:210      评论:0      收藏:0      [点我收藏+]

标签:select


mysql> grant select on aaa.* to query identified by ‘query‘;

Query OK, 0 rows affected (0.00 sec)


mysql> show grants for query

    -> ;

+------------------------------------------------------------------------------------------------------+

| Grants for query@%                                                                                   |

+------------------------------------------------------------------------------------------------------+

| GRANT USAGE ON *.* TO ‘query‘@‘%‘ IDENTIFIED BY PASSWORD ‘*9C1A98FDC07907D9E7956EBBC4741B1E9C2B5DBB‘ |

| GRANT SELECT ON `aaa`.* TO ‘query‘@‘%‘                                                               |

+------------------------------------------------------------------------------------------------------+

2 rows in set (0.00 sec)


mysql 查询权限设置

标签:select

原文地址:http://wishin83.blog.51cto.com/9523417/1590173

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