MySQL
This guide contains information required in setting up an MySQL Sink in Vanus Connect.
Introduction
MySQL is a popular open-source relational database management system used to store, organize, and retrieve data for websites, applications, and other software.
Vanus Connect's MySQL sink connector simplifies the process of transferring data/events from various sources to a MySQL database/table, with configurable filters and upsert/insert modes.
Prerequisites
Before forwarding events to MySQL, you must have:
- A Vanus Cloud account
- Have a running MySQL server.
- Have a Database and Table created.
Perform the following step to configure your MySQL Sink.
Step 1: Create a Connection
Enter all the following information in Vanus Connect.
- Choose the action to execute①
- Host② - The IP address of your MySQL Server.
- Port③ - The Port of your MySQL Server: 3306.
- Username④ - A Username with the following permissions INSERT, UPDATE, DELETE.
- Password⑤ - The user password.
- Database⑥ - The database name.
- Table⑦ - The table name.
Step 2: Personalize Event Structure
This is a general instruction on how to personalize your event structure. You can structure your events to suit your specific requirements and create connections for different scenarios.
- Click on Display sample events① for reference and click on Add More② to add events.
- Input key③ and search for the corresponding value④ for the event you want.
- You can fill in as many key-value pairs⑤ as you wish to receive.
- Click Submit⑥ to finish the configuration process.
Custom Connection
The event data must be in JSON format and created following the structure of your database, here's an example:
{
"title": "value",
"date": "value",
"ect...": "value"
}