Skip to content

[ENHANCEMENT]: Add MySQL-compatible storage backend support #13696

Description

@PsiACE

Is your feature request related to a problem? Please describe.

Phoenix currently supports SQLite and PostgreSQL storage backends, but not MySQL databases.

Some self-hosted users (like me) already operate MySQL infrastructure and may prefer to use it instead of introducing another database.

Describe the solution you'd like

I have a working prototype that adds MySQL as a standard SQLAlchemy backend using mysql+aiomysql.

https://github.com/PsiACE/phoenix/tree/add-mysql-storage-backend

The approach is limited to self-hosted deployments and new installations: create the schema from the current SQLAlchemy models, stamp the Alembic head, and add MySQL query/upsert/type handling where needed.

I have tested OTLP ingestion, basic GraphQL queries, span descendants, trace count time series, sessions, and span costs against MySQL 8 and a MySQL-compatible backend.

I would like to know whether this is something the maintainers would be open to reviewing upstream.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestintegrationIntegration with third parties, platforms

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    📘 Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions