NAME
rt-setup-database - Set-up the database for Request Tracker
SYNOPSIS
rt-setup-database --action init|drop|insert [--datafile <file>] \--dba <username> --prompt-for-dba-password|--dba-password <guess>
OPTIONS
action: init Initialize the databasedrop Drop the database.This will ERASE ALL YOUR DATAinsert Insert data into RT's database.By default, will use RT's installation data.To use a local or supplementary datafile, specify itusing the '--datafile' option below.acl Initialize only the database ACLsTo use a local or supplementary datafile, specify itusing the '--datadir' option below.schema Initialize only the database schemaTo use a local or supplementary datafile, specify itusing the '--datadir' option below.datafile: /path/to/datafiledatadir: /path/to/ Used to specify a path to find the localdatabase schema and acls to be installed.dba: dba's usernamedba-password: dba's passwordprompt-for-dba-password Ask for the database administrator'spassword interactivelyno-dba for 'init': assume that the database and theuser are already created, so we don't needadministrator privileges (Debian-specific)
INTERNALS
get_system_dsn
Returns a dsn suitable for database creates and drops and user creates and drops
ACLEquivGroupId
Given a userid, return that user's acl equivalence group