---
name: "rt-setup-database-3.4"
section: "8"
platform: "linux"
package: "request-tracker3.4"
version: "3.4.5-2+etch1"
release: "Debian 4.0 (Etch)"
platforms: ["linux"]
url: "https://new.carta.tech/rt-setup-database-3.4"
---

# rt-setup-database-3.4(8)

rt-setup-database - Set-up the database for Request Tracker

```
 rt-setup-database --action init|drop|insert [--datafile <file>] \
     --dba <username> --prompt-for-dba-password|--dba-password <guess>
```

```
 action:  init    Initialize the database
          drop    Drop the database.
                  This will ERASE ALL YOUR DATA
          insert  Insert data into RT's database.
                  By default, will use RT's installation data.
                  To use a local or supplementary datafile, specify it
                  using the '--datafile' option below.
```

```
 datafile: /path/to/datafile
```

```
 dba:                      dba's username
 dba-password:             dba's password
 prompt-for-dba-password   Ask for the database administrator's
                           password interactively
```

**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
