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.
This file is the schema only for the database. It does not contain any example entries.
This file is the same as databaseTables.txt except that the file also contains a snapshot of the state of SSRL's database on a particular date. This file is probably too cluttered for everyday use.
This file is the same as the databaseTables.txt except that it contains a few simple entries for a simple beam line. This is probably a good starting point for most developers.
The following directions are provided which will assist in creating the database schema.
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.
beamline_configuration.
mysql> CREATE DATABASE beamline_configuration;
mysql -u root -p beamline_configuration < simpleTables.txt
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.