How-To Guides
Integration Guides

MySQL SSL Integration Guide

9min
review the following guide for setting up an integration between manufacturing connect edge and a mysql database using ssl authentication before you begin you will need the following access to a mysql database with ssl authentication the ca certificate and any other required authentication parameters to access the database you can use the following supported versions mysql (4 1+) mariadb percona server google cloudsql sphinx (2 2 3+) refer to the following links to learn more mysql docker image mysql documentation configuring mysql to use encrypted connections step 1 add device follow the steps to connect a device docid\ rfvijdxz7dbad8mwbisma the device will be used to store tags that will be eventually used to create outbound topics in the connector make sure to select the enable data store checkbox step 2 add tags after connecting the device in manufacturing connect edge, you can add tags docid\ ioanzd2awqnkuppgee3eh to the device create tags that you want to use to create outbound topics for the connector step 3 add the db mysql ssl connector follow the steps to add a connector docid\ m2nifnaadyphcvzwmcoto and select the db mysql ssl provider configure the following parameters name enter a name for the connector hostname paste the ip address you copied in step 3 port the port needed to access the database the default value is 3306 ca certificate paste or upload the ca certificate associated with the database certificate paste or upload the ssl certificate private key enter or paste the ssl private key username enter the username to access the database password (optional) enter the password associated with the username database enter the database name table enter a name to create a new table or enter the name of an existing table show mapping select the check box to display mappings see work with tables in sql connectors (create table and show mapping) docid\ fi9mbiprrrixufdihwql9 to learn more too add key/value pairs for the custom table, see work with tables in sql connectors (create table and show mapping) docid\ fi9mbiprrrixufdihwql9 create table if you want to send data to an existing table in the default format, or you want to create a new table in the default format, select this checkbox and unselect show mapping see work with tables in sql connectors (create table and show mapping) docid\ fi9mbiprrrixufdihwql9 to learn more commit timeout enter the transaction commit timeout in (ms) max transaction size enter the maximum number of messages before a transaction is committed, regardless of timeout parameter throttling limit the maximum number of messages per second to be processed the default value is zero, which means that there is no limit persistent storage when enabled, this will cause messages to undergo a store and forward procedure messages will be stored within manufacturing connect edge when cloud providers are online queue mode select the queue mode as lifo (last in first out) or fifo (first in first out) selecting lifo means that the last data entry is processed first, and selecting fifo means the first data entry is processed first step 4 enable the connector after adding the connector, click the toggle in the connector tile to enable it if you see a failed status, you can review the manage connectors docid\ zz28hztqbk7od xsj81o8 and relevant error messages step 5 create topics for connector you will now need to import the tags created in step 2 as topics for the mysql connector the topics will be created as outbound topics to create outbound topics click the connector tile the connector dashboard appears click the topics tab click the import from devicehub tags icon the devicehub import dialog box appears select all the tags to import and click import after adding all required topics, navigate to the integration overview page and ensure the connector is not disabled and still shows a connected status step 6 enable topics to enable the topics, return to the topics tab and click the enable all topics icon step 7 make mysql queries you can now verify that you can view data in the mysql database update the credentials, database name, and table name to your own specific configurations to make mysql queries from the mysql terminal window, enter mysql u user p and press enter enter password appears enter your user password, and then press enter welcome to the mysql monitor appears enter show databases; and press enter the database name appears enter use sample; and press enter reading table information for completion of table and column names appears in the console enter show tables; and press enter the table names for sample appear enter select from test table; and press enter data appears from the imported tags for the connector