1 | # $Id$ |
---|
2 | |
---|
3 | PyKota - Print Quotas for CUPS and LPRng |
---|
4 | |
---|
5 | (c) 2003, 2004, 2005, 2006 Jerome Alet <alet@librelogiciel.com> |
---|
6 | This program is free software; you can redistribute it and/or modify |
---|
7 | it under the terms of the GNU General Public License as published by |
---|
8 | the Free Software Foundation; either version 2 of the License, or |
---|
9 | (at your option) any later version. |
---|
10 | |
---|
11 | This program is distributed in the hope that it will be useful, |
---|
12 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
14 | GNU General Public License for more details. |
---|
15 | |
---|
16 | You should have received a copy of the GNU General Public License |
---|
17 | along with this program; if not, write to the Free Software |
---|
18 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
---|
19 | |
---|
20 | ============================================================ |
---|
21 | |
---|
22 | Documentation for the pykota-mysql.sql script : |
---|
23 | ----------------------------------------------- |
---|
24 | |
---|
25 | This script is to be used to create an empty Quota Storage |
---|
26 | DataBase using MySQL as a backend. |
---|
27 | |
---|
28 | - edit the pykota-mysql.sql file and modify the passwords at |
---|
29 | the end of the 'GRANT USAGE' lines. |
---|
30 | |
---|
31 | - As MySQL's administrative user, usually root, |
---|
32 | do the following : |
---|
33 | |
---|
34 | # mysql <pykota-mysql.sql |
---|
35 | |
---|
36 | - If no error message appear, your MySQL PyKota storage |
---|
37 | is now ready for use. |
---|
38 | |
---|
39 | - In ~pykota/pykota.conf, ensure that the following lines |
---|
40 | are present and unique inside the [global] section : |
---|
41 | |
---|
42 | storagebackend : mysqlstorage |
---|
43 | storageserver : localhost |
---|
44 | storagename : pykota |
---|
45 | storageuser : pykotauser |
---|
46 | storageuserpw : readonlypw |
---|
47 | |
---|
48 | NB : replace 'readonlypw' with the password you chose |
---|
49 | for user 'pykotauser' when you modified pykota-mysql.sql |
---|
50 | |
---|
51 | - In ~pykota/pykotadmin.conf ensure that the following lines |
---|
52 | are present and unique inside the [global] section : |
---|
53 | |
---|
54 | storageadmin : pykotaadmin |
---|
55 | storageadminpw : readwritepw |
---|
56 | |
---|
57 | NB : replace 'readwritepw' with the password you chose |
---|
58 | for user 'pykotaadmin' when you modified pykota-mysql.sql |
---|
59 | |
---|
60 | - IMPORTANT : if your database is not located on the print server, |
---|
61 | replace 'localhost' in the lines above with your database server's |
---|
62 | hostname or IP address. If your database server doesn't listen on |
---|
63 | its standard port, add the port number at the end of the hostname |
---|
64 | with a colon to separate the hostname from the port. |
---|
65 | See pykota/conf/pykota.conf.sample for examples. |
---|
66 | |
---|
67 | ============================================================ |
---|