Skip to content

Connect to Database

Function Description

TIP

Select a database type to connect to the database

Connect to Database

Configuration Item Description

General

Command Input

  • Database TypeInteger: Select a database connection type

  • Connection Stringstring: Please enter the database connection string

  • Addressstring: Please enter the database connection address

  • PortInteger: Please enter the database connection port

  • Databasestring: Please enter the database name

  • Usernamestring: Please enter the database username

  • Passwordstring: Please enter the database password

  • Database Charsetstring: Please enter the database charset

  • Login MethodInteger: Select a login method

Command Output

  • Save Database Connection Object toTDatabase: Specify a variable name that will store the database connection object

Advanced

  • Delay Before(milliseconds)Integer: The waiting time before instruction execution

Error Handling

  • Print Error LogsBoolean: Whether to print error logs to the "Logs" panel when the command fails. Default is checked.

  • Handling MethodInteger:

    • Terminate Process: If the command fails, terminate the process.

    • Ignore Exception and Continue Execution: If the command fails, ignore the exception and continue the process.

    • Retry This Command: If the command fails, retry the command a specified number of times with a specified interval between retries.

Usage Example

Process logic description:

Common Errors and Handling

None

Frequently Asked Questions

None