DocsIntegrationsMySQL
mysql
Data Source

MySQL

Connect your MySQL or MariaDB database to CipherSense Agents workflows

MySQL is the world's most popular open-source relational database. CipherSense Agents connects via standard credentials, letting your workflows run SQL queries and retrieve structured data as input context for Agent nodes. Compatible with AWS RDS for MySQL, Google Cloud SQL, PlanetScale, and self-hosted instances.

Official documentation

Setup

1

Gather your connection details

You'll need: host, port (default 3306), database name, username, and password. Whitelist your CipherSense Agents server's IP in the database's allowed hosts or firewall rules.

2

Create a least-privilege user

Create a read-only user instead of sharing admin credentials.

-- Create user
CREATE USER 'CipherSense Agents_ro'@'%' IDENTIFIED BY 'your-password';

-- Grant read-only access
GRANT SELECT ON your_database.* TO 'CipherSense Agents_ro'@'%';
FLUSH PRIVILEGES;
3

Add the integration in CipherSense Agents

Go to Project > Integrations > Add Integration > MySQL. Enter host, port, database, username, and password. Click Save & Test.

Connection Fields

Fields required when adding this integration in your Project › Integrations.

FieldRequiredDescription
Host
Required
Hostname or IP of your MySQL server.
Port
Required
Default MySQL port is 3306.
Database
Required
Name of the MySQL database.
Username
Required
MySQL user with SELECT permissions.
Password
Required
Password for the MySQL user.
Enable SSL
Optional
SSL mode for the connection: disable, prefer, or require.

Common Use Cases

Query e-commerce order dataFetch user records for personalisation workflowsRead product inventory for restock agentsSync AI outputs to application databases

Ready to connect MySQL?

Add this integration from your project dashboard and wire it into a workflow.