Skip to Content
Unified docs shell with shared Classifyre tokens and acid-green highlight accents.
SourcesMy SQL

My SQL

Schema-driven source documentation.

MYSQL45 fields3 examples
Commonly Asked Questions
Assistant knowledge mapped to this source type from assistant_knowledge.json.

Required
Fields required for a valid configuration payload under `config.required`.
PathTypeRequiredDescriptionDefaultConstraints
requiredobjectYesno extra properties
required.hoststringYesMySQL hostlocalhost
required.portintegerYesMySQL port3306min 1, max 65535
Masked
Sensitive fields under `config.masked` (secrets/credentials).
PathTypeRequiredDescriptionDefaultConstraints
maskedobjectYesno extra properties
masked.passwordstringYesDatabase password
masked.ssl_castringNoPEM-encoded CA certificate for SSL/TLS verification. Paste the full certificate content (-----BEGIN CERTIFICATE----- ... -----END CERTIFICATE-----). Required when ssl_mode is VERIFY_CA or VERIFY_IDENTITY.
masked.usernamestringYesDatabase username
Optional
Optional configuration fields under `config.optional`.
PathTypeRequiredDescriptionDefaultConstraints
optionalobjectNono extra properties
optional.connectionobjectNoConnection tuning for MySQL.no extra properties
optional.connection.allow_public_key_retrievalbooleanNoAllow automatic RSA public key retrieval from the server for caching_sha2_password authentication (MySQL 8+). Only needed when not using SSL and connecting to MySQL 8 servers using the default authentication plugin.false
optional.connection.connect_timeout_secondsintegerNoConnection timeout in seconds10min 1, max 120
optional.connection.ssl_modeenumNoSSL/TLS connection mode. DISABLED: no TLS; PREFERRED: TLS when available (default); REQUIRED: mandate TLS without certificate verification; VERIFY_CA: mandate TLS and verify the CA certificate (requires ssl_ca); VERIFY_IDENTITY: mandate TLS, verify CA, and verify server hostname. Allowed values: DISABLED, PREFERRED, REQUIRED, VERIFY_CA, VERIFY_IDENTITYPREFERRED
optional.scopeobjectNoDatabase and table selection scope.no extra properties
optional.scope.databasestringNoSingle database to scan (optional when include_all_databases is true)
optional.scope.exclude_databasesarrayNoDatabase denylist (exact database names)["information_schema","mysql","performance_schema","sys"]
optional.scope.exclude_databases[]stringNo
optional.scope.include_all_databasesbooleanNoScan all visible databases except excluded system databasesfalse
optional.scope.include_tablesarrayNoOptional table allowlist. Accepted forms: table or database.table
optional.scope.include_tables[]stringNo
optional.scope.table_limitintegerNoOptional cap on number of table assets extracted per databasemin 1
Examples
Reference payloads generated from shared source examples JSON.
Quick discovery scan
Discover all tables in the server with random row sampling — works on any MySQL instance

Schedule

{
  "enabled": true,
  "preset": "weekday_business",
  "cron": "11 11 * * 1-5",
  "timezone": "UTC"
}

Config Payload

{
  "type": "MYSQL",
  "required": {
    "host": "your-host",
    "port": 3306
  },
  "masked": {
    "username": "your-username",
    "password": "your-password"
  },
  "optional": {
    "scope": {
      "include_all_databases": true
    }
  },
  "sampling": {
    "strategy": "RANDOM",
    "rows_per_page": 50
  }
}
All databases nightly governance scan
Scan all user databases (excluding system databases) with latest-row sampling for data governance

Schedule

{
  "enabled": true,
  "preset": "nightly",
  "cron": "43 1 * * *",
  "timezone": "UTC"
}

Config Payload

{
  "type": "MYSQL",
  "required": {
    "host": "your-host",
    "port": 3306
  },
  "masked": {
    "username": "your-username",
    "password": "your-password"
  },
  "optional": {
    "scope": {
      "include_all_databases": true
    }
  },
  "sampling": {
    "strategy": "LATEST",
    "fallback_to_random": true,
    "rows_per_page": 50
  }
}
PII and secrets detection
Run PII and secrets detectors on all tables — useful for GDPR or SOC 2 readiness

Schedule

{
  "enabled": true,
  "preset": "weekday_morning",
  "cron": "37 8 * * 1-5",
  "timezone": "UTC"
}

Config Payload

{
  "type": "MYSQL",
  "required": {
    "host": "your-host",
    "port": 3306
  },
  "masked": {
    "username": "your-username",
    "password": "your-password"
  },
  "optional": {
    "scope": {
      "include_all_databases": true
    }
  },
  "sampling": {
    "strategy": "RANDOM",
    "rows_per_page": 30
  },
  "detectors": [
    {
      "type": "SECRETS",
      "enabled": true
    },
    {
      "type": "PII",
      "enabled": true
    }
  ]
}