Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Create a MySQL options file in your home directory called ~/.my_cal.cnf.

    1. This file will contain the database access parameters the Python scripts will use.
    2. You can use a different file with the -o parameter. It can be useful to have different files for the calib and calib_test databases. Be sure to include the full path (e.g., ~/) for the file.
    3. Change the permissions so that you are the only one who can read it (chmod 600).

  2. Add the following lines to the file:

    Code Block
    languagetext
    titlecnf file
    collapsetrue
    [client]
    host=glastCalibDB.slac.stanford.edu
    user=<your database user name>
    password=<your database password>
    database=calib (for testing use 

    You can use the calib_test

    )

    database instead of the calib database for testing. You may need to enclose your password in quotes if it contains certain special characters (like #). 

...