In this section:
Table of Contents | ||
---|---|---|
|
Preparing the Database Table Structure
DTP uses a database called "DTP" to store data and retrieve data. You can create the database structure from the UI when you log into DTP for the first time.
You also can run the database creation script located in the DTP_HOME/bin/ directory to quickly set up the databases. Run the script after the initial DTP installation but before the services are started. See Stopping DTP Services for instructions on how to stop services if they are already running.
Info | ||
---|---|---|
| ||
Check the dtpconsole-db.log log for the following error (the log may include additional messages):
The error message will specify your timezone. If you see this error after a database creation script failure, set the |
Running the Database Creation Script on Windows
The database creation script packaged in the Windows installer will only create new database schemas and schema objects. Administrative privileges is required to execute this script.
- Open the DTP_HOME/bin directory in Windows Explorer.
- Right-click databasesetup.bat and choose Run as administrator from the contextual menu.
The script checks for previously configured database connection settings. Provide the database connection settings if necessary. Default values for prompts will be shown in brackets if available. - Start up the DTP services after the script completes successfully. See Starting DTP Applications.
Running the Database Creation Script on Linux
- Open the DTP_HOME/bin directory and run the dtpconsole.sh script.
- Choose
Option 5 - Database
configuration when the console opens. - The script checks for previously configured database connection settings. If a database has not been previously configured, then you will be prompted to either create a new database schema, populate an existing schema with schema objects, use a previously configured database schema, or perform no actions.
- Provide the database connection settings parameters when prompted. Default values for prompts will be shown in brackets if available.
- Start up the DTP services after the script completes successfully. See Starting DTP Applications.
Connecting to the Database
When the database creation scripts have run successfully, you can set the authentication settings for connecting to the database through the web UI. After logging in and the license code is accepted, Parasoft checks the database structure and redirects you to the Database Settings page if applicable. If you have not met the JDBC driver requirement (see JDBC Drivers), you will receive a message prompting you to download the driver.
Info | ||
---|---|---|
| ||
The default password for connecting to the database is The See the MySQL documentation for additional information: https://dev.mysql.com/doc/refman/8.0/en/validate-password-options-variables.html |
When the JDBC driver is installed, you can configure your database connections or create new databases. There are three options available:
Include Page _Connecting-Creating-DBs _Connecting-Creating-DBs
Switching to an External Database
Include Page | ||||
---|---|---|---|---|
|
Follow the instructions for preparing and configuring the external database as described in Connecting to the Database.