Create a connection in Anaplan Data Orchestrator to import data from MySQL. Then use the connection to extract data and create a source dataset.
Prerequisites
Before you create a connection, you need:
- A MySQL instance hosted on a cloud platform, such as Amazon Web Services (AWS), Azure, Google Cloud Platform (GCP), or any other cloud provider.
- An unencrypted Certificate Authority (CA) certificate in Privacy-Enhanced Mail (PEM) format.
- A database user with a password and permissions (at least read permission).
For example:
CREATE USER <user_name> IDENTIFIED BY 'your_password_here';
GRANT SELECT, RELOAD, SHOW DATABASES, REPLICATION SLAVE, REPLICATION CLIENT ON *​.* TO <user_name>;
Create a connection to MySQL
You need your MySQL credentials to connect the MySQL data with Data Orchestrator. See the MySQL documentation for more information.
To create a connection:
- Select Data Orchestrator from the top-left navigation menu.
- Select Connections on the left-side panel.
- Select Create connection.
- Select MySQL and then select Next.
If you can't find the connector, enter a search term in the Find... field. - On the Connection details page, enter these details and select Next:
- Name: Create a name for your connection. The name can contain alphanumeric characters and underscores.
- Description: Enter a description about your connection.
- On the Connection credentials page, enter your MySQL credentials, and then select Next.
- Username: The MySQL user name required to authenticate.
- Password: The MySQL password required to authenticate.
- Host: The MySQL host domain. The host is provided by the administrator of your MySQL instance.
- Port: The MySQL port number. The port number is provided by the administrator of your MySQL instance.
- Database: The MySQL database name.
- CA Certificate: The MySQL connector supports TLS/SSL encryption. TLS/SSL encryption enables you to establish a secure, encrypted connection to MySQL instances. It protects data in transit from being intercepted or read by unauthorized parties. The connection is secured using a digital certificate installed on the server. This provides an essential layer of data protection.
For the connector to use the CA certificate, you must first decode the Base64-encoded CA certificate in the PEM format. For example:
-----BEGIN CERTIFICATE-----
MIIDBzCCAe+....................
.......multiple line...........
-----END CERTIFICATE-----
- After the connection test is complete, select Done.
Note: If you need to edit the connection, you must enter the CA certificate again.
Extract data from the MySQL connection
You can extract data from the MySQL connection to add source data to Data Orchestrator. The data extract creates a source dataset.
To extract data:
- Select Data Orchestrator from the top-left navigation menu.
- Select Source data from the left-side panel.
- Select Add data > From connection.
- On the Dataset details page, enter these details and select Next:
- Connection
- Dataset name
- Description
- Namespace
- Path name
- On the Choose an upload type page, enter these details and select Next:
- Select the Load type:
- Full replace: Completely replaces the current loaded data with the new data.
- Append: Adds the new data to the end of the current table.
- Incremental: Takes the data and incrementally updates what was previously loaded.
- Select the columns to import.
- Select the Load type:
- Select Create in the confirmation dialog.