Connectors

MySQL and MariaDB

MySQL and MariaDB connector configuration options and limitations.

MySQL and MariaDB

MySQL and MariaDB are supported as separate connectors. Select the connector that matches your server.

Supported Versions

DatabaseMinimum Tested Version
MySQL8.4
MariaDB10.7

These are the lowest versions tested against Monospace. Older versions are untested and may not work.

Connection Parameters

ParameterTypeRequiredDefaultDescription
hoststringYesDatabase server hostname or IP address
portnumberYesDatabase server port
userstringYesDatabase username
passwordstringConditionalDatabase password. Required unless aws_iam is set
dbnamestringNoDatabase name
ssl.modestringNoSSL connection mode
ssl.ca_certstringNoCA certificate (base64-encoded PEM or DER)

Alternatively, paste a connection string to auto-populate fields:

MySQL
mysql://user:password@host:3306/database
MariaDB
mariadb://user:password@host:3306/database

The MySQL connector accepts mysql://. The MariaDB connector accepts mariadb://.

Use the sslmode query parameter in the URL to set ssl.mode.

AWS IAM Authentication

Amazon RDS and Aurora instances can authenticate with AWS IAM instead of a database password. Set aws_iam on the connection and omit password — exactly one of the two must be present. Each connection mints a short-lived token; tokens are never reused across connections.

ParameterTypeRequiredDefaultDescription
aws_iam.regionstringYesAWS region of the database instance, for example us-east-1
aws_iam.access_keystringNoAWS access key ID. Must be paired with aws_iam.secret_key
aws_iam.secret_keystringNoAWS secret access key. Must be paired with aws_iam.access_key
aws_iam.role_arnstringNoIAM role to assume, for example arn:aws:iam::123456789012:role/my-role

Omit access_key and secret_key to use whatever credentials the runtime provides — an EC2 instance profile, an EKS/IRSA web identity token, an ECS task role, AWS SSO, or a shared credentials profile.

The database user is still required, and must be granted IAM authentication on the instance.

Setting aws_iam forces ssl.mode to verify-full, and the Amazon RDS certificate authority for aws_iam.region is trusted automatically — you do not need to download the RDS CA bundle and set ssl.ca_cert. An explicit ssl.ca_cert still takes precedence.

In the Studio, choose AWS IAM as the Authentication Method when adding the data source. It is offered on the PostgreSQL, MySQL, and MariaDB connectors and on the Amazon RDS and Aurora presets.

SSL Modes

ModeDescription
disableNo TLS encryption
preferNot supported. Choose disable, require, verify-ca, or verify-full
requireRequire TLS without certificate verification. If ssl.ca_cert is provided, verifies the server certificate against it
verify-caRequire TLS and verify the server certificate chain against ssl.ca_cert. Does not check hostname. Requires ssl.ca_cert
verify-fullRequire TLS, verify the certificate chain, and verify hostname. Uses system roots when ssl.ca_cert is omitted
Mutual TLS is not yet supported for MySQL/MariaDB.

Limitations

  • Collections need a primary key for updates and deletes.
  • Primary key values cannot currently be changed.

See Also

Copyright © 2026