Project

General

Profile

Configure sinedoncfg shared » History » Version 4

Anchi Cheng, 05/20/2010 11:44 PM

1 1 Anchi Cheng
h1. Configure sinedon.cfg
2
3
4
5
Sinedon is an object relational mapping library designed to interact with the Leginon and Appion databases. It can be configured at global or user level.
6
7
    * An example configuration file is available at:
8
      myami/sinedon/examples/sinedon.cfg
9
10
    * Configurations for all users should be placed at the following path:
11
      $PYTHONSITEPKG/sinedon/sinedon.cfg
12
13 4 Anchi Cheng
    * Modify sinedon.cfg to look like the following example. Set the host, [[Explanation of Sample Names|db, user, and passwd]] to match the databases created during your Database Server setup. Note that the user here is the MySQL user Leginon uses to communicate with the database for all Leginon users. For an Appion or Leginon installation that uses Project database, set the following:
14 1 Anchi Cheng
<pre>
15
[global]
16
#host: your_database_host
17
host: localhost
18
user: usr_object
19
passwd:
20
21
[projectdata]
22
db: projectdb
23
24
[leginondata]
25
db: leginondb
26
</pre>