DB - MySQL SSL
Review the MySQL SSL Integration Guide.
Overview
MySQL SSL integration enables an Edge System to connect with a MySQL Database using SSL authentication.
Supported Versions
MySQL (4.1+), MariaDB, Percona Server, Google CloudSQL or Sphinx (2.2.3+)
Supported Communication
- Outbound (Edge to Database) - Yes
- Inbound (Database to Edge) - No
Configurations
Variable | Detail | Required |
|---|---|---|
Name | Enter a name for the connector | Yes |
Hostname | IP Address or Hostname of MSSQL Server (Must be reachable from the Edge system) | Yes |
CA Certificate | SSL CA Certificate | No |
Certificate | SSL Certificate | No |
Private key | SSL Private key | No |
Port | MSSQL Server port | Yes |
Username | User name | Yes |
Password | User password | No |
Database | Database name | Yes |
Table | Table name | Yes |
Show Mapping | Data from a predefined table could be mapped into a custom one. Example: {"from": "to"} where "from" is a column from predefined table, and "to" is a column from destination table. See Work with Tables in SQL Connectors (Create Table and Show Mapping) to learn more. | |
Create table | If selected and table doesn't exist, the table is created with the necessary format. See Work with Tables in SQL Connectors (Create Table and Show Mapping) to learn more. | No |
Commit timeout | Transaction commit timeout (ms) | No |
Max transaction size | Maximum number of messages before a transaction is committed regardless of timeout | No |
Bulk insert count | To enable this option, enter the number of messages to group together and send as one bulk insert statement. Enabling this option can improve how quickly data is processed when dealing with high volumes of tags. | No |
Throttling limit | Set a limit on the number of outbound messages per second. If sending data to a server that has restrictions on the rate of incoming messages, this ensures that no messages are lost. | No |
Persistent storage | If enabled, messages in the outbound queue are stored on disk. If there are interruptions in connection or power loss, messages will be retained and eventually sent when the connection is restored. | No |
Queue mode | Select the sequence of data transfer: FIFO or LIFO. Selecting FIFO (First In First Out) will send the earliest message first. Selecting LIFO (Last In First Out) will send the latest message first. | No |
Compatibility Validation
This information is just for reference. More products and versions may be supported.
Product | Version |
|---|---|
MySQL | 8 |
Note: When the Create table check box is not selected, the table format (columns) that you will create must still adhere to the following format.
#CREATE TABLE IF NOT EXISTS `TABLE_NAME`
(
id BIGINT AUTO_INCREMENT NOT NULL,
record_uuid CHAR(36) NOT NULL,
arrived_at DATETIME NOT NULL,
device_id VARCHAR(64) NULL,
register_id VARCHAR(64) NULL,
tag_name VARCHAR(64) NULL,
datatype VARCHAR(32) NULL,
value TEXT NULL,
success TINYINT NULL,
PRIMARY KEY (id)
);