Skip to main content

MySQL

MySQL datasources use the ODBC driver and the MariaDB ODBC connector. The connection string is built internally from the provided fields.
See Supported Data Formats for database source categories and schema column types supported on MySQL connections.

Connection configuration

URI format

The URI is used as a reference identifier. CloudQuant Data Liberator builds the actual ODBC connection string internally from the individual connection fields (server, database, username, password).

Required fields

Optional fields

Example connection

Dataset configuration (data_args)

Required fields

Optional fields

table_options entry

Each entry in table_options describes a table to query:

Complete example

Connection

Dataset

Set data_dt_format to true when using native MySQL DATETIME or TIMESTAMP columns. CloudQuant Data Liberator will auto-detect the datetime type and convert directly without string parsing.

SSL configuration

By default, SSL is enabled. To disable SSL (e.g., for local development):
Disabling SSL in production is not recommended. Always use SSL when connecting over untrusted networks. The MariaDB ODBC driver supports TLS 1.2+ by default.

Driver and dependencies

The MariaDB ODBC 3.2+ driver must be installed on the CloudQuant Data Liberator host. This driver is compatible with both MySQL and MariaDB servers. Verify installation with odbcinst -q -d.

Troubleshooting

ODBC driver not found

If you see errors about missing ODBC drivers, verify the MariaDB ODBC driver is installed and registered:
Install the driver if missing:

Connection refused

Verify the MySQL server is accepting connections on the specified host and port. Check that the bind-address in the MySQL configuration allows remote connections.

Authentication failed

Ensure the user has been granted access from the CloudQuant Data Liberator host’s IP address:

SSL handshake errors

If SSL connections fail, check that the MySQL server’s SSL certificate is valid and trusted. Set ssl_disabled to "True" temporarily to confirm the issue is SSL-related.

Slow queries

  • Increase batch_size for large result sets (up to 100000).
  • Ensure the datetime and key columns are indexed in MySQL.
  • For partitioned tables, ensure dt_regex is correctly scoping queries to relevant partitions.