Skip to main content

MySQL Connector

Connect to MySQL and MariaDB databases for natural language queries.

Overview

The MySQL connector supports:

  • MySQL 5.7+ and 8.x
  • MariaDB 10.x+
  • Natural language to SQL
  • Schema discovery

Prerequisites

  • MySQL/MariaDB database
  • Read access credentials
  • Network connectivity

Configuration

SettingDescription
HostDatabase hostname
PortDatabase port (3306)
DatabaseDatabase name
UsernameDB user
PasswordUser password
TLSEnable TLS encryption

Setup Steps

  1. Add Connector: Knowledge → Add Data Source → MySQL
  2. Enter Connection: Host, port, database
  3. Provide Credentials: Username and password
  4. Configure TLS: If required
  5. Test & Create: Verify and save

Best Practices

  1. Use a dedicated read-only user
  2. Enable TLS for production
  3. Add table comments for NL understanding
  4. Limit to necessary tables

Troubleshooting

Access denied: Check user privileges

Connection timeout: Verify network/firewall

SSL errors: Configure TLS settings