For the complete documentation index, see llms.txt. This page is also available as Markdown.

MySQL Integration Discovered Resources

Overview

The Euno MySQL integration discovers the schemas, tables, views, columns, and stored programs of a MySQL server, together with optional usage and lineage. It discovers the following resources:

  • MySQL instance (mysql_instance)

  • MySQL schema, or database (database_schema)

  • MySQL table (table, subtype base_table)

  • MySQL view (table, subtype view)

  • MySQL column (column)

  • MySQL stored program (generic_data_transformation, subtypes mysql_procedure, mysql_function, mysql_trigger)

The instance URI uses the prefix platform.mysql.<hostname>. All other resources use the prefix mysql.<hostname>. <hostname> is the Override MySQL Hostname for URIs value when it is set, and the MySQL hostname otherwise.

Resource hierarchy

MySQL Instance
└── Schema (Database)
    ├── Table
    │   └── Column
    ├── View
    │   └── Column
    └── Stored procedure / Stored function / Trigger

MySQL instance (mysql_instance)

The top-level MySQL server instance.

Property
Type
Description

name

string

Instance name (the MySQL hostname, or the Override MySQL Instance Name value). Example: mysql-prod-01.

type

string

Always mysql_instance.

subtype

string

Always mysql_instance.

database_technology

string

Always mysql.

URI pattern

Example: platform.mysql.mysql-prod-01.amazonaws.com

MySQL schema (database_schema)

A MySQL database (schema) within the instance.

Property
Type
Description

name

string

Schema name. Example: ecommerce.

type

string

Always database_schema.

subtype

string

Always database_schema.

database_technology

string

Always mysql.

URI pattern

Example: mysql.mysql-prod-01.amazonaws.com.ecommerce

System schemas excluded

The following system schemas are automatically excluded from discovery:

  • mysql - MySQL system database

  • sys - MySQL sys schema

  • performance_schema - Performance monitoring schema

  • information_schema - Metadata schema

MySQL table (table, subtype base_table)

A MySQL base table.

Property
Type
Description

name

string

Table name. Example: customers.

type

string

Always table.

subtype

string

Always base_table.

description

string

Table comment, if any.

database_technology

string

Always mysql.

database_schema

string

Schema name.

platform_uri_prefix

string

URI prefix for this instance (mysql.<hostname>).

created_at

timestamp

Table creation timestamp.

row_count

number

Approximate number of rows.

volume

number

Storage size in bytes (data + indexes).

native_last_data_update

timestamp

Last time data was modified.

query_count

number

Optional usage. Number of MySQL statements referencing the table since Performance Schema was reset.

last_accessed_at

timestamp

Optional usage. Latest digest LAST_SEEN time; omitted for unread tables.

distinct_users

number

Optional usage. Best-effort number of distinct users with retained statements that reference the table.

total_read_queries_14d / _30d / _60d

number

Optional usage. Number of queries that read the table in the window.

distinct_users_14d / _30d / _60d

number

Optional usage. Distinct users that read the table in the window, when user history is available.

URI pattern

Example: mysql.mysql-prod-01.amazonaws.com.ecommerce.customers

Optional usage metrics

When usage collection is enabled, tables and views publish total_read_queries_14d, total_read_queries_30d, total_read_queries_60d and, when user history is available, distinct_users_14d, distinct_users_30d, distinct_users_60d. These are the standard fields used by the resource Usage tab and EQL usage filters.

For permissions and collection settings, see MySQL Usage Data.

Query counts use retained Performance Schema digests and their FIRST_SEEN / LAST_SEEN bounds. A digest's count accumulates until reset. If any digest for a table spans a window's cutoff, its executions cannot be split accurately and that window is left unavailable. Digests entirely within the window contribute their counts; older digests contribute zero. Tables without retained digest evidence and disabled digest collection do not publish window counts. Resets and digest eviction limit historical coverage. Table I/O counters count row operations and are not used as windowed query counts.

Distinct-user counts deduplicate the users of retained history-long statements within each window. Statement times are estimated from Performance Schema timers relative to the crawler's current statement. History is a bounded buffer, and user attribution requires the original thread to still exist; counts can therefore undercount users. Missing history or timing information is left unavailable rather than reported as zero. User windows also require enabled global/thread instrumentation, the current-statement and history-long consumers, and enabled, timed statement instruments. Disabled or unreadable settings preserve existing user windows even when timestamped rows remain in the buffer. This check is independent of digest availability. Legacy unwindowed query_count and distinct_users retain their existing fallbacks.

last_accessed_at continues to use the latest digest LAST_SEEN and is omitted for unread tables. Disabling usage collection or losing Performance Schema access leaves previously stored usage unchanged.

MySQL view (table, subtype view)

A MySQL view. Euno stores the view definition SQL and uses it for lineage.

Property
Type
Description

name

string

View name. Example: active_customers.

type

string

Always table.

subtype

string

Always view.

description

string

View comment, if any.

database_technology

string

Always mysql.

database_schema

string

Schema name.

platform_uri_prefix

string

URI prefix for this instance (mysql.<hostname>).

created_at

timestamp

View creation timestamp.

query_count

number

Optional usage, as described for tables.

last_accessed_at

timestamp

Optional usage, as described for tables.

distinct_users

number

Optional usage, as described for tables.

total_read_queries_14d / _30d / _60d

number

Optional usage, as described for tables.

distinct_users_14d / _30d / _60d

number

Optional usage, as described for tables.

URI pattern

Example: mysql.mysql-prod-01.amazonaws.com.ecommerce.active_customers

MySQL column (column)

A column within a MySQL table or view.

Property
Type
Description

name

string

Column name. Example: customer_id.

type

string

Always column.

subtype

string

Always column.

description

string

Column comment, if any.

database_technology

string

Always mysql.

database_schema

string

Schema name.

native_data_type

string

Original MySQL data type with size. Example: varchar(255).

normalized_data_type

string

Euno normalized data type. See Data type mapping.

URI pattern

Example: mysql.mysql-prod-01.amazonaws.com.ecommerce.customers.column.customer_id

MySQL stored program (generic_data_transformation)

A MySQL stored procedure (mysql_procedure), stored function (mysql_function), or trigger (mysql_trigger). Routines whose definition is hidden from the Euno user are skipped.

Property
Type
Description

name

string

Procedure, function, or trigger name.

type

string

Always generic_data_transformation.

subtype

string

mysql_procedure, mysql_function, or mysql_trigger.

database_technology

string

Always mysql.

database_schema

string

Schema name.

platform_uri_prefix

string

URI prefix for this instance (mysql.<hostname>).

created_at

timestamp

Creation timestamp.

URI pattern

Example: mysql.mysql-prod-01.amazonaws.com.ecommerce.procedure.refresh_customer_stats

Relationships

Each row is one relationship edge, written in the canonical direction for its family. Use the predicate in each heading to search for these relationships in EQL.

Containment (has parent / has child)

Source type
Relationship
Target type
Notes

database_schema

has parent

mysql_instance

table

has parent

database_schema

Tables and views.

column

has parent

table

Columns of tables and views.

generic_data_transformation

has parent

database_schema

Stored procedures, stored functions, and triggers.

Lineage (has upstream / has downstream)

Source type
Relationship
Target type
Notes

table

has upstream

table

Views: tables and views referenced in the SQL definition of the view.

table

has upstream

table

Base tables: source tables of retained INSERT ... SELECT and CREATE TABLE ... SELECT statements in Performance Schema. Requires Extract Query History Lineage. Digest is preferred; empty or unavailable digest falls back to events_statements_history_long.

table

has upstream

table

Base tables: tables referenced by the table's foreign keys. Requires Extract Indexes and Constraints.

generic_data_transformation

has upstream

table

Stored procedures and functions: tables referenced in the routine body, including tables the routine writes to.

Field-level lineage (has upstream_fields / has downstream_fields)

Source type
Relationship
Target type
Notes

column

has upstream_fields

column

View columns: parsed from the view definition. Base table columns: parsed from the latest retained INSERT ... SELECT statement that writes the table (requires Extract Query History Lineage).

table

has upstream_fields

column

Columns used in SQL logic (for example JOIN conditions and WHERE filters) of a view definition, not only projected columns.

Optional indexes and constraints

When Extract Indexes and Constraints is enabled, Euno collects index definitions (name, type, uniqueness, and column sequence) and primary-key, unique, foreign-key, and check constraints. Foreign keys contribute to has upstream table lineage.

Check clause text comes from CHECK_CONSTRAINTS when that catalog exists (MySQL 8.0.16+). On earlier versions, check-constraint clause text may be omitted; indexes, primary keys, unique constraints, and foreign keys are still collected.

Data type mapping

The MySQL integration maps MySQL native data types to Euno's normalized data types:

String types

MySQL Type
Normalized Type

CHAR, VARCHAR

string

TINYTEXT, TEXT, MEDIUMTEXT, LONGTEXT

string

ENUM, SET

string

Binary types

MySQL Type
Normalized Type

BINARY, VARBINARY

binary

TINYBLOB, BLOB, MEDIUMBLOB, LONGBLOB

binary

Numeric types

MySQL Type
Normalized Type

TINYINT, SMALLINT, MEDIUMINT, INT, INTEGER, BIGINT

number

DECIMAL, NUMERIC, FLOAT, DOUBLE, REAL

number

BIT, SERIAL

number

Date/time types

MySQL Type
Normalized Type

DATE, TIME, DATETIME, TIMESTAMP, YEAR

datetime

Boolean types

MySQL Type
Normalized Type

BOOLEAN, BOOL

boolean

Complex types

MySQL Type
Normalized Type

JSON

object

Geometry types (GEOMETRY, POINT, etc.)

object

Unknown types

Any data type not recognized in the mapping above will be assigned the normalized type unknown.

Known limitations

  • Query-history lineage, usage metrics, and foreign-key lineage are optional and disabled by default (Extract Query History Lineage, Extract Usage Metrics, Extract Indexes and Constraints).

  • Query-history lineage uses only statements retained in Performance Schema (events_statements_summary_by_digest, falling back to events_statements_history_long). Resets and eviction limit coverage. If a retained statement that may reference an observed schema cannot be parsed, query-history lineage is skipped for that run.

  • Triggers are discovered without lineage.

  • When stored-program visibility cannot be confirmed, previously discovered resources are retained until a complete crawl.

Last updated