next up previous contents 5
Next: Configuring DCSS Up: Installation Previous: Installing DCSS   Contents


Creating the mysql database schema

The DCSS code uses several tables in the mysql database to determine who is currently allowed to use a beam line.

The standard SSRL DHS code also uses the same database to extract device configurations at start up.

To create this database, first install dcss, which contains three example database dumps in the the /dcss/examples/ directory.

The following directions are provided which will assist in creating the database schema.

  1. Log in to the mysql database.

    blctlxx:~/release-3_2/dcss/examples >mysql -u root -p
    Enter password: 
    Welcome to the MySQL monitor.  Commands end with ; or \g.
    Your MySQL connection id is 12313 to server version: 3.23.53a
    
    Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
    

  2. Create an empty database called beamline_configuration.

    mysql> CREATE DATABASE beamline_configuration;

  3. From the unix shell prompt type:

    mysql -u root -p beamline_configuration < simpleTables.txt

  4. At some point be sure to grant select permissions for dcss and all dhs programs and related hostnames. See the instructions regarding the 'GRANT' command in Configuring User permissions and Configuring DHS.


next up previous contents 5
Next: Configuring DCSS Up: Installation Previous: Installing DCSS   Contents
Scott McPhillips 2003-03-11