~openerp-community/openobject-doc/6.1

« back to all changes in this revision

Viewing changes to i18n/vi/source/book/1/1_1_Inst_Config/1_1_Inst_Config_db_create.rst

  • Committer: TruongSinh Tran
  • Date: 2009-07-19 19:02:35 UTC
  • Revision ID: truongsinh@vipescoserver-20090719190235-fu3bxcrbpvwuk5h7
[FIX] build_i18n.py .. raw:: html

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
 
2
2
.. i18n: .. index::
3
 
   .. i18n: single: database; create
4
 
   .. i18n: single: database
 
3
.. i18n:    single: database; create
 
4
.. i18n:    single: database
5
5
 
6
6
.. index::
7
7
   single: database; create
8
8
   single: database
9
9
 
10
10
.. i18n: .. _sect-dbcreate:
11
 
 
12
 
Database creation
13
 
=================
14
 
 
 
11
.. i18n: 
15
12
.. i18n: Database creation
16
13
.. i18n: =================
17
14
 
 
15
.. _sect-dbcreate:
 
16
 
18
17
Database creation
19
18
=================
20
19
 
29
28
you'll have to find somebody who does have it to create this seed database.
30
29
 
31
30
.. i18n: .. index::
32
 
   .. i18n: single: password; super-administrator
33
 
   .. i18n: single: password; superadmin
 
31
.. i18n:    single: password; super-administrator
 
32
.. i18n:    single: password; superadmin
34
33
 
35
34
.. index::
36
35
   single: password; super-administrator
37
36
   single: password; superadmin
38
37
 
39
38
.. i18n: .. note:: The super-administrator password
 
39
.. i18n: 
 
40
.. i18n:    Anyone who knows the super-administrator password has complete access to the data on the server
 
41
.. i18n:    – able to read, change and delete any of the data in any of the databases there.
 
42
.. i18n: 
 
43
.. i18n:    After first installation, the password is ``admin``. This is the hard-coded default, and
 
44
.. i18n:    is used if there is no accessible server configuration file. If your system has been 
 
45
.. i18n:    set up so that the server configuration file can be written to by the server then
 
46
.. i18n:    you can change the password through the client. Or you could deliberately make the 
 
47
.. i18n:    configuration file read-only so that there is no prospect of changing it from the client.
 
48
.. i18n:    Either way, a server systems administrator can change it if you forget it.
 
49
.. i18n:    
 
50
.. i18n:    So if your system is set u to allow it, you can change the superadmin password through the GTK client
 
51
.. i18n:    from the menu :menuselection:`File --> Databases --> Administrator Password`, or through the
 
52
.. i18n:    web client by logging out (click the :guilabel:`Logout` link), clicking :guilabel:`Databases` on the
 
53
.. i18n:    login screen, and then clicking the :guilabel:`Password` button on the Management screen. 
 
54
.. i18n:    
 
55
.. i18n:    The location of the server configuration file is typically defined by starting the server with 
 
56
.. i18n:    the ``--config`` command line option.
 
57
 
 
58
.. note:: The super-administrator password
40
59
 
41
60
   Anyone who knows the super-administrator password has complete access to the data on the server
42
61
   – able to read, change and delete any of the data in any of the databases there.
43
62
 
44
 
   .. i18n: Anyone who knows the super-administrator password has complete access to the data on the server
45
 
   .. i18n: – able to read, change and delete any of the data in any of the databases there.
46
 
 
47
 
   After first installation, the password is ``admin``. This is the hard-coded default, and
48
 
   is used if there is no accessible server configuration file. If your system has been 
49
 
   set up so that the server configuration file can be written to by the server then
50
 
   you can change the password through the client. Or you could deliberately make the 
51
 
   configuration file read-only so that there is no prospect of changing it from the client.
52
 
   Either way, a server systems administrator can change it if you forget it.
53
 
   
54
 
   So if your system is set u to allow it, you can change the superadmin password through the GTK client
55
 
   from the menu :menuselection:`File --> Databases --> Administrator Password`, or through the
56
 
   web client by logging out (click the :guilabel:`Logout` link), clicking :guilabel:`Databases` on the
57
 
   login screen, and then clicking the :guilabel:`Password` button on the Management screen. 
58
 
   
59
 
   The location of the server configuration file is typically defined by starting the server with 
60
 
   the ``--config`` command line option.
61
 
 
62
 
   .. i18n: After first installation, the password is ``admin``. This is the hard-coded default, and
63
 
   .. i18n: is used if there is no accessible server configuration file. If your system has been 
64
 
   .. i18n: set up so that the server configuration file can be written to by the server then
65
 
   .. i18n: you can change the password through the client. Or you could deliberately make the 
66
 
   .. i18n: configuration file read-only so that there is no prospect of changing it from the client.
67
 
   .. i18n: Either way, a server systems administrator can change it if you forget it.
68
 
   .. i18n: 
69
 
   .. i18n: So if your system is set u to allow it, you can change the superadmin password through the GTK client
70
 
   .. i18n: from the menu :menuselection:`File --> Databases --> Administrator Password`, or through the
71
 
   .. i18n: web client by logging out (click the :guilabel:`Logout` link), clicking :guilabel:`Databases` on the
72
 
   .. i18n: login screen, and then clicking the :guilabel:`Password` button on the Management screen. 
73
 
   .. i18n: 
74
 
   .. i18n: The location of the server configuration file is typically defined by starting the server with 
75
 
   .. i18n: the ``--config`` command line option.
76
 
 
77
63
   After first installation, the password is ``admin``. This is the hard-coded default, and
78
64
   is used if there is no accessible server configuration file. If your system has been 
79
65
   set up so that the server configuration file can be written to by the server then
90
76
   the ``--config`` command line option.
91
77
 
92
78
.. i18n: .. figure:: images/change_superadmin_pwd.png
93
 
   .. i18n: :scale: 75
94
 
   .. i18n: :align: center
95
 
 
96
 
   *Changing the super-administrator password through the web client*
97
 
 
98
 
   .. i18n: *Changing the super-administrator password through the web client*
 
79
.. i18n:    :scale: 75
 
80
.. i18n:    :align: center
 
81
.. i18n: 
 
82
.. i18n:    *Changing the super-administrator password through the web client*
 
83
 
 
84
.. figure:: images/change_superadmin_pwd.png
 
85
   :scale: 75
 
86
   :align: center
99
87
 
100
88
   *Changing the super-administrator password through the web client*
101
89
 
102
90
.. i18n: .. _sect-creatingdb:
103
 
 
104
 
Creating the database
105
 
---------------------
106
 
 
 
91
.. i18n: 
107
92
.. i18n: Creating the database
108
93
.. i18n: ---------------------
109
94
 
 
95
.. _sect-creatingdb:
 
96
 
110
97
Creating the database
111
98
---------------------
112
99
 
119
106
you're creating.
120
107
 
121
108
.. i18n: .. figure:: images/create_new_db_GTK.png
122
 
   .. i18n: :scale: 75
123
 
   .. i18n: :align: center
124
 
 
125
 
   *Creating a new database through the GTK client*.. i18n:   
126
 
 
127
 
   .. i18n: *Creating a new database through the GTK client*  
 
109
.. i18n:    :scale: 75
 
110
.. i18n:    :align: center
 
111
.. i18n: 
 
112
.. i18n:    *Creating a new database through the GTK client*  
 
113
 
 
114
.. figure:: images/create_new_db_GTK.png
 
115
   :scale: 75
 
116
   :align: center
128
117
 
129
118
   *Creating a new database through the GTK client*  
130
119
 
131
120
.. i18n: If you're using the web client, click :guilabel:`Databases` on the login screen, then
132
121
.. i18n: :guilabel:`Create` on the database management page. Enter the super-administrator password, and the
133
122
.. i18n: name of the new database you're creating.
134
 
  .. i18n: 
 
123
.. i18n:   
135
124
.. i18n: In both cases you'll see a checkbox that determines whether you load demonstration data or not.
136
125
.. i18n: The consequences of checking this box or not affect the **whole use** of this database.
137
126
 
157
146
---------------------
158
147
 
159
148
.. i18n: .. index::
160
 
   .. i18n: pair: account; user
 
149
.. i18n:    pair: account; user
161
150
 
162
151
.. index::
163
152
   pair: account; user
171
160
database you can extend it without having to know the super-administrator password.
172
161
 
173
162
.. i18n: .. index::
174
 
   .. i18n: single: access; LDAP
175
 
   .. i18n: single: LDAP
176
 
   .. i18n: pair: password; username
177
 
   .. i18n: single: access; user
 
163
.. i18n:    single: access; LDAP
 
164
.. i18n:    single: LDAP
 
165
.. i18n:    pair: password; username
 
166
.. i18n:    single: access; user
178
167
 
179
168
.. index::
180
169
   single: access; LDAP
183
172
   single: access; user
184
173
 
185
174
.. i18n: .. tip::   User Access
 
175
.. i18n: 
 
176
.. i18n:        The combination of username/password is specific to a single database. If you have administrative
 
177
.. i18n:        rights to a database you can modify all users.
 
178
.. i18n: 
 
179
.. i18n:        .. index::
 
180
.. i18n:           single: module; users_ldap
 
181
.. i18n: 
 
182
.. i18n:        Alternatively you can install the :mod:`users_ldap` module, which manages the authentication of users
 
183
.. i18n:        in LDAP (the Lightweight Directory Access Protocol, a standard system), and connect it to several
 
184
.. i18n:        Open ERP databases. Using this, many databases can share the same user account details.
 
185
 
 
186
.. tip::   User Access
186
187
 
187
188
        The combination of username/password is specific to a single database. If you have administrative
188
189
        rights to a database you can modify all users.
189
190
 
190
 
        .. i18n: The combination of username/password is specific to a single database. If you have administrative
191
 
        .. i18n: rights to a database you can modify all users.
192
 
 
193
191
        .. index::
194
192
           single: module; users_ldap
195
193
 
196
 
        .. i18n: .. index::
197
 
           .. i18n: single: module; users_ldap
198
 
 
199
 
        Alternatively you can install the :mod:`users_ldap` module, which manages the authentication of users
200
 
        in LDAP (the Lightweight Directory Access Protocol, a standard system), and connect it to several
201
 
        Open ERP databases. Using this, many databases can share the same user account details.
202
 
 
203
 
        .. i18n: Alternatively you can install the :mod:`users_ldap` module, which manages the authentication of users
204
 
        .. i18n: in LDAP (the Lightweight Directory Access Protocol, a standard system), and connect it to several
205
 
        .. i18n: Open ERP databases. Using this, many databases can share the same user account details.
206
 
 
207
194
        Alternatively you can install the :mod:`users_ldap` module, which manages the authentication of users
208
195
        in LDAP (the Lightweight Directory Access Protocol, a standard system), and connect it to several
209
196
        Open ERP databases. Using this, many databases can share the same user account details.
210
197
 
211
198
.. i18n: .. note::  Failure to create a database
212
 
 
213
 
        How do you know if you've successfully created your new database?
214
 
        You're told if the database creation has been unsuccessful.
215
 
        If you have entered a database name using prohibited characters (or no name, or too short a name)
216
 
        you will be alerted by the dialog box :guilabel:`Bad database name!` explaining how to correct the error.
217
 
        If you've entered the wrong super-administrator password or a name already in use
218
 
        (some names can be reserved without your knowledge), you'll be alerted by the dialog box
219
 
        :guilabel:`Error during database creation!`.
220
 
 
221
 
        .. i18n: How do you know if you've successfully created your new database?
222
 
        .. i18n: You're told if the database creation has been unsuccessful.
223
 
        .. i18n: If you have entered a database name using prohibited characters (or no name, or too short a name)
224
 
        .. i18n: you will be alerted by the dialog box :guilabel:`Bad database name!` explaining how to correct the error.
225
 
        .. i18n: If you've entered the wrong super-administrator password or a name already in use
226
 
        .. i18n: (some names can be reserved without your knowledge), you'll be alerted by the dialog box
227
 
        .. i18n: :guilabel:`Error during database creation!`.
 
199
.. i18n: 
 
200
.. i18n:        How do you know if you've successfully created your new database?
 
201
.. i18n:        You're told if the database creation has been unsuccessful.
 
202
.. i18n:        If you have entered a database name using prohibited characters (or no name, or too short a name)
 
203
.. i18n:        you will be alerted by the dialog box :guilabel:`Bad database name!` explaining how to correct the error.
 
204
.. i18n:        If you've entered the wrong super-administrator password or a name already in use
 
205
.. i18n:        (some names can be reserved without your knowledge), you'll be alerted by the dialog box
 
206
.. i18n:        :guilabel:`Error during database creation!`.
 
207
 
 
208
.. note::  Failure to create a database
228
209
 
229
210
        How do you know if you've successfully created your new database?
230
211
        You're told if the database creation has been unsuccessful.
246
227
If this is the first time you've connected to this database you'll be asked a series of questions to
247
228
define the database parameters:
248
229
 
249
 
        .. i18n: #.  :guilabel:`Select a profile` : select \ ``Minimal Profile``\  and click :guilabel:`Next`.
 
230
.. i18n:        #.  :guilabel:`Select a profile` : select \ ``Minimal Profile``\  and click :guilabel:`Next`.
 
231
.. i18n: 
 
232
.. i18n:        #.  :guilabel:`Company Details` : replace the proposed default of \ ``Tiny sprl``\  by your own
 
233
.. i18n:            company name, complete as much of your address as you like, and add some lines about your company,
 
234
.. i18n:            such as a slogan and any statutory requirements, to the header and footer fields. Click
 
235
.. i18n:            :guilabel:`Next`.
 
236
.. i18n: 
 
237
.. i18n:        #.  :guilabel:`Summary` : check the information and go back to make any modifications you need
 
238
.. i18n:            before installation. Then click :guilabel:`Install`.
 
239
.. i18n: 
 
240
.. i18n:        #.  :guilabel:`Installation Completed` : click :guilabel:`Ok`.
 
241
 
 
242
        #.  :guilabel:`Select a profile` : select \ ``Minimal Profile``\  and click :guilabel:`Next`.
250
243
 
251
244
        #.  :guilabel:`Company Details` : replace the proposed default of \ ``Tiny sprl``\  by your own
252
245
            company name, complete as much of your address as you like, and add some lines about your company,
253
246
            such as a slogan and any statutory requirements, to the header and footer fields. Click
254
247
            :guilabel:`Next`.
255
248
 
256
 
        .. i18n: #.  :guilabel:`Company Details` : replace the proposed default of \ ``Tiny sprl``\  by your own
257
 
            .. i18n: company name, complete as much of your address as you like, and add some lines about your company,
258
 
            .. i18n: such as a slogan and any statutory requirements, to the header and footer fields. Click
259
 
            .. i18n: :guilabel:`Next`.
260
 
 
261
249
        #.  :guilabel:`Summary` : check the information and go back to make any modifications you need
262
250
            before installation. Then click :guilabel:`Install`.
263
251
 
264
 
        .. i18n: #.  :guilabel:`Summary` : check the information and go back to make any modifications you need
265
 
            .. i18n: before installation. Then click :guilabel:`Install`.
266
 
 
267
 
        #.  :guilabel:`Installation Completed` : click :guilabel:`Ok`.
268
 
 
269
 
        .. i18n: #.  :guilabel:`Installation Completed` : click :guilabel:`Ok`.
270
 
 
271
252
        #.  :guilabel:`Installation Completed` : click :guilabel:`Ok`.
272
253
 
273
254
.. i18n: Once configuration is complete you're connected to your Open ERP system. Its functionality is very
279
260
your installation is working.
280
261
 
281
262
.. i18n: .. figure:: images/define_main_co_dlg.png
282
 
   .. i18n: :align: center
283
 
   .. i18n: :scale: 80
284
 
 
285
 
   *Defining your company during initial database configuration*
286
 
 
287
 
   .. i18n: *Defining your company during initial database configuration*
 
263
.. i18n:    :align: center
 
264
.. i18n:    :scale: 80
 
265
.. i18n: 
 
266
.. i18n:    *Defining your company during initial database configuration*
 
267
 
 
268
.. figure:: images/define_main_co_dlg.png
 
269
   :align: center
 
270
   :scale: 80
288
271
 
289
272
   *Defining your company during initial database configuration*
290
273
 
291
274
.. i18n: .. index::
292
 
   .. i18n: single: database; manage
 
275
.. i18n:    single: database; manage
293
276
 
294
277
.. index::
295
278
   single: database; manage
305
288
As a super-administrator you've not only got rights to create new databases, but also to:
306
289
 
307
290
.. i18n: * delete databases,
308
 
 
309
 
* backup databases,
310
 
 
 
291
.. i18n: 
311
292
.. i18n: * backup databases,
312
 
 
313
 
* restore databases.
314
 
 
 
293
.. i18n: 
315
294
.. i18n: * restore databases.
316
295
 
 
296
* delete databases,
 
297
 
 
298
* backup databases,
 
299
 
317
300
* restore databases.
318
301
 
319
302
.. i18n: All of these operations can be carried out from the menu :menuselection:`File --> Databases... -->
325
308
:guilabel:`Login` screen.
326
309
 
327
310
.. i18n: .. index::
328
 
   .. i18n: single: database; duplicate
 
311
.. i18n:    single: database; duplicate
329
312
 
330
313
.. index::
331
314
   single: database; duplicate
332
315
 
333
316
.. i18n: .. tip::   Duplicating a database
 
317
.. i18n: 
 
318
.. i18n:        To duplicate a database you can:
 
319
.. i18n: 
 
320
.. i18n:         #. make a backup file on your PC from this database.
 
321
.. i18n: 
 
322
.. i18n:         #. restore this database from the backup file on your PC, giving it a new name as you do so.
 
323
.. i18n: 
 
324
.. i18n:        This can be a useful way of making a test database from a production database. You can try out the
 
325
.. i18n:        operation of a new configuration, new modules, or just the import of new data.
 
326
 
 
327
.. tip::   Duplicating a database
334
328
 
335
329
        To duplicate a database you can:
336
330
 
337
 
        .. i18n: To duplicate a database you can:
338
 
 
339
331
        #. make a backup file on your PC from this database.
340
332
 
341
 
        .. i18n: #. make a backup file on your PC from this database.
342
 
 
343
333
        #. restore this database from the backup file on your PC, giving it a new name as you do so.
344
334
 
345
 
        .. i18n: #. restore this database from the backup file on your PC, giving it a new name as you do so.
346
 
 
347
 
        This can be a useful way of making a test database from a production database. You can try out the
348
 
        operation of a new configuration, new modules, or just the import of new data.
349
 
 
350
 
        .. i18n: This can be a useful way of making a test database from a production database. You can try out the
351
 
        .. i18n: operation of a new configuration, new modules, or just the import of new data.
352
 
 
353
335
        This can be a useful way of making a test database from a production database. You can try out the
354
336
        operation of a new configuration, new modules, or just the import of new data.
355
337
 
356
338
.. i18n: .. index::
357
 
   .. i18n: single: access
 
339
.. i18n:    single: access
358
340
 
359
341
.. index::
360
342
   single: access
390
372
What if want to update what's there, or extend what's there with additional modules?
391
373
 
392
374
.. i18n: * To update what you have, you'd install a new instance of Open ERP using the same techniques as
393
 
  .. i18n: described earlier in this section, :ref:`sect-dbcreate`.
394
 
 
395
 
* To extend what you have, you'd install new modules in the ``addons`` directory of your current
396
 
  Open ERP installation. There are several ways of doing that.
397
 
 
 
375
.. i18n:   described earlier in this section, :ref:`sect-dbcreate`.
 
376
.. i18n: 
398
377
.. i18n: * To extend what you have, you'd install new modules in the ``addons`` directory of your current
399
 
  .. i18n: Open ERP installation. There are several ways of doing that.
 
378
.. i18n:   Open ERP installation. There are several ways of doing that.
 
379
 
 
380
* To update what you have, you'd install a new instance of Open ERP using the same techniques as
 
381
  described earlier in this section, :ref:`sect-dbcreate`.
400
382
 
401
383
* To extend what you have, you'd install new modules in the ``addons`` directory of your current
402
384
  Open ERP installation. There are several ways of doing that.
403
385
 
404
386
.. i18n: .. index::
405
 
   .. i18n: pair:  system; administrator
 
387
.. i18n:    pair:  system; administrator
406
388
 
407
389
.. index::
408
390
   pair:  system; administrator
428
410
various Linux distributions and not available at all in the Windows all-in-one installer).
429
411
 
430
412
.. i18n: .. index::
431
 
   .. i18n: single: module; product
432
 
   .. i18n: single: module; purchase
 
413
.. i18n:    single: module; product
 
414
.. i18n:    single: module; purchase
433
415
 
434
416
.. index::
435
417
   single: module; product
448
430
You can add modules in two main ways – through the server, or through the client.
449
431
 
450
432
.. i18n: .. index::
451
 
   .. i18n: pair:  system; administration
 
433
.. i18n:    pair:  system; administration
452
434
 
453
435
.. index::
454
436
   pair:  system; administration
472
454
server by the server software).
473
455
 
474
456
.. i18n: .. index::
475
 
   .. i18n: pair:  filesystem; permissions
 
457
.. i18n:    pair:  filesystem; permissions
476
458
 
477
459
.. index::
478
460
   pair:  filesystem; permissions
479
461
 
480
462
.. i18n: .. tip:: Changing permissions
481
 
 
482
 
        A very simple way of changing permissions on the Linux system you're using to develop an Open ERP
483
 
        application is to execute the command sudo chmod 777 <path_to_addons> (where <path_to_addons> is
484
 
        the full path to the addons directory, a location like /usr/lib/python2.5/site-packages/openerp-
485
 
        server/addons).
486
 
 
487
 
        .. i18n: A very simple way of changing permissions on the Linux system you're using to develop an Open ERP
488
 
        .. i18n: application is to execute the command sudo chmod 777 <path_to_addons> (where <path_to_addons> is
489
 
        .. i18n: the full path to the addons directory, a location like /usr/lib/python2.5/site-packages/openerp-
490
 
        .. i18n: server/addons).
 
463
.. i18n: 
 
464
.. i18n:        A very simple way of changing permissions on the Linux system you're using to develop an Open ERP
 
465
.. i18n:        application is to execute the command sudo chmod 777 <path_to_addons> (where <path_to_addons> is
 
466
.. i18n:        the full path to the addons directory, a location like /usr/lib/python2.5/site-packages/openerp-
 
467
.. i18n:        server/addons).
 
468
 
 
469
.. tip:: Changing permissions
491
470
 
492
471
        A very simple way of changing permissions on the Linux system you're using to develop an Open ERP
493
472
        application is to execute the command sudo chmod 777 <path_to_addons> (where <path_to_addons> is