MySQL is a popular, open-source relational database (RDMBS). You can connect to any table in any schema in MySQL and create a Gtmhub entity based on it.

How to connect

  • In Gtmhub, navigate to Setup > Data Sources screen

  • Click on the Add new Data Source button

  • From the Choose a Data Source dialog, select MySQL from Databases tab

Enter the necessary information to connect to your MySQL database.

  • host: host name or IP address of your MySQL instance

  • schema: the name of the schema to which you want to connect

  • username: the name of the user with which you wish to connect

  • password: the password of the user with which you wish to connect

  • port: the port where MySql is listening. The default is 3306, which is a standard MySQL port

Click on the Connect button.

  • Choose a table to which you want to connect and click on the Use ... button

  • Give the name to your data source, something that makes sense to you and select the sync schedule (how often you want this data source to be synced automatically)

  • Click on the Add my data source button

Note: Contact us for information on Gtmhub's outbound IPs for your account if you need to create a firewall rule to enable external access.

What data from MySQL can I use

You can sync any field from any table in any schema that is accessible to the user with which you connected to MySQL database.

Gtmhub will automatically coerce types for you, so for example date and timestamp can both be mapped to Gtmhub date type.

Did this answer your question?