Skip to main content

Connect

AutomatR.MySQLDataBase.Database.Connect

The "Connect" activity in AutomatR facilitates the connection to a MySQL database. This activity is crucial for establishing a connection to the specified database, allowing subsequent activities to interact with the database.

Properties

NameDescription
Input
DataBase NameSpecifies the name of the database you want to connect with. String variables containing the database name.
PasswordProvide a password for the username with which you would like to connect to the database. SecureString variables containing the password.
PortSpecify the port number for the database you want to connect with. Integer variables containing the port number.
SourceSpecify a source path. String variables containing the source path.
User NameProvide a username for the database. String variables containing the username.
Misc
Display NameProvides a customizable name for the activity displayed in the workflow. The display name enhances clarity and organization within the automation project. String variables containing the desired display name.
Optional
DelaySpecifies the amount of time (in seconds) to wait before executing the "Connect" activity. This can be useful for handling synchronization issues. Integer variables containing the delay duration. Ex.: If the amount of time is 1000 milliseconds or 1 sec, i.e., 1.
Output
ConnectionThe result will be stored in a MySQLConnection variable, which can be used for further activities. Variables of type MySqlConnection to store the database connection.

How to use:

  1. Drag and drop the "Connect" activity onto the workflow.
  2. Configure the properties by specifying the database name, password, port, source, and username for the database connection.
  3. Optionally, configure the delay for synchronization purposes.
  4. Execute the workflow to establish a connection to the specified MySQL database.

Example: Consider an example where the "Connect" activity is used to connect to a MySQL database:

Connect:
Source: "localhost"
Port: 3306
DataBase Name: "sampledb"
User Name: "admin"
Password: SecureStringVariable
Connection: MySqlDbConnection

In this example, the activity connects to the "sampledb" MySQL database on the "localhost" server using the provided credentials. The resulting database connection is stored in the variable "MySqlDbConnection" for further use in the workflow.