Project

General

Profile

Configure sinedoncfg 2 1 » History » Version 1

Amber Herold, 05/30/2012 12:13 PM

1 1 Amber Herold
h1. Configure sinedon.cfg for Appion/Leginon versions pre-2.2
2
3
Sinedon is an object relational mapping library designed to interact with the Leginon and Appion databases.
4
5
    * An example configuration file is available at:
6
      myami/sinedon/examples/sinedon.cfg
7
8
    * Configurations for all users should be placed at the following path:
9
      $PYTHONSITEPKG/sinedon/sinedon.cfg
10
 
11
Note: You can discover the $PYTHONSITEPKG path by starting python:
12
<pre>
13
python
14
import sys
15
sys.path
16
</pre>
17
The first path to site-packages should hold the config file.
18
19
    * 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:
20
<pre>
21
[global]
22
#host: your_database_host
23
host: localhost
24
user: usr_object
25
passwd:
26
27
[projectdata]
28
db: projectdb
29
30
[leginondata]
31
db: leginondb
32
</pre>
33
34
*Note:* If you are a developer, and you need to use sinedon.cfg settings that are different from the global settings, you may create your own sinedon.cfg file and place it in your home directory. This version will override the global version located in the site packages directory.