Ingesting Data from MySQL and MariaDB | Vendia

Ingesting Data from MySQL and MariaDB

Connecting to MySQL or MariaDB

To connect to MySQL, MariaDB, or MySQL-compatible databases, you need to provide the following information:

Supported MySQL-Compatible Databases

Vendia supports ingesting data from the following MySQL-compatible databases:

Connection String Format

The connection string format for MySQL is:

mysql://[username]:[password]@[host]:[port]/[database]

Prerequisites

Before connecting to MySQL or MariaDB, ensure that:

Required Permissions

The user account connecting to MySQL or MariaDB must have the following permissions:

Example Configuration

Here’s an example of a typical MySQL/MariaDB connection configuration:

Field Example Value
Name Production MySQL Database
Host mysql-server.company.com
Port 3306
Database analytics_db
Username vendia_user
Password ****
Use SSL Yes
Connection String mysql://vendia_user:****@mysql-server.company.com:3306/analytics_db?ssl=true

Vendia Supported and Unsupported MySQL Data Types

Vendia Supported MySQL Data Types Supported Aliases Vendia Unsupported MySQL Data Types Unsupported Aliases
BIGINT BINARY
DATE BIT
DECIMAL DEC, NUMERIC BLOB
DOUBLE DOUBLE PRECISION, REAL CHAR CHARACTER
FLOAT DATETIME
INT INTEGER ENUM
MEDIUMINT GEOMETRY
SMALLINT JSON
TIME LINESTRING
TIMESTAMP LONGBLOB
TINYINT LONGTEXT
TINYINT(1) BOOL, BOOLEAN MEDIUMBLOB
VARCHAR MEDIUMTEXT
POINT
POLYGON
SET
TEXT
TINYBLOB
TINYTEXT
VARBINARY
YEAR

Note: In MySQL, BOOL and BOOLEAN are aliases that specifically map to TINYINT(1). When you declare a column as BOOLEAN or BOOL in MySQL, it is automatically converted to TINYINT(1).

Best Practices

Troubleshooting

If you encounter connection issues:

  1. Connection Refused: Verify the host address and port number are correct
  2. Authentication Failed: Check username and password credentials
  3. Database Not Found: Confirm the database name exists and is accessible
  4. Permission Denied: Verify the user has the required SELECT and SHOW privileges
  5. SSL Errors: Check SSL/TLS configuration and certificate validity
  6. Network Issues: Ensure firewall rules allow connections on the specified port
  7. Timeout Errors: Check network latency and database server load

Next Steps

After successfully connecting to your MySQL/MariaDB database, you can: