Configure sinedoncfg shared » History » Version 6
Amber Herold, 06/15/2010 04:00 PM
1 | 1 | Anchi Cheng | h1. Configure sinedon.cfg |
---|---|---|---|
2 | |||
3 | |||
4 | |||
5 | 6 | Amber Herold | Sinedon is an object relational mapping library designed to interact with the Leginon and Appion databases. |
6 | 1 | Anchi Cheng | * An example configuration file is available at: |
7 | myami/sinedon/examples/sinedon.cfg |
||
8 | |||
9 | * Configurations for all users should be placed at the following path: |
||
10 | $PYTHONSITEPKG/sinedon/sinedon.cfg |
||
11 | |||
12 | 5 | 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: |
13 | 1 | Anchi Cheng | <pre> |
14 | [global] |
||
15 | #host: your_database_host |
||
16 | host: localhost |
||
17 | user: usr_object |
||
18 | passwd: |
||
19 | |||
20 | [projectdata] |
||
21 | db: projectdb |
||
22 | |||
23 | [leginondata] |
||
24 | db: leginondb |
||
25 | </pre> |
||
26 | 6 | Amber Herold | |
27 | *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. |