Last batch of updates
[clearscm.git] / clearadm / lib / users.sql
1 -- -----------------------------------------------------------------------------
2 --
3 -- File:        $RCSfile: users.sql,v $
4 -- Revision:    $Revision: 1.1 $
5 -- Description: Create users for clearscm
6 -- Author:      Andrew@ClearSCM.com
7 -- Created:     Tue Nov 30 08:46:42 EST 2010
8 -- Modified:    $Date: 2010/12/13 17:16:30 $
9 -- Language:    SQL
10 --
11 -- Copyright (c) 2010, ClearSCM, Inc., all rights reserved
12 --
13 -- -----------------------------------------------------------------------------
14
15 -- Seems that in order to grant access to a user from really all hosts you need
16 -- to do both @'%' and @localhost!
17 grant all privileges 
18   on clearadm.*
19   to clearadm@'%'
20 identified by 'clearscm';
21 grant all privileges
22   on clearadm.*
23   to clearadm@localhost
24 identified by 'clearscm';
25
26 grant select
27   on clearadm.*
28   to cleareader@'%'
29 identified by 'cleareader';
30 grant select
31   on clearadm.*
32   to cleareader@localhost
33 identified by 'cleareader';
34
35 grant insert, select, update, delete
36   on clearadm.*
37   to clearwriter@'%'
38 identified by 'clearwriter';
39 grant insert, select, update, delete
40   on clearadm.*
41   to clearwriter@localhost
42 identified by 'clearwriter';