skillfed

apache-airflow-providers-mysql

Provider package apache-airflow-providers-mysql for Apache Airflow

apache-airflow-providers-mysql v6.6.1 15.7M downloads/30d#1,175 on PyPI46,489
Permissive license Apache-2.0 Active released

What it is and what it does

This is an Apache Airflow provider package that adds MySQL database integration to Airflow workflows. It supplies operators, hooks, and sensors that let you define, schedule, and monitor MySQL queries and commands as tasks within Airflow DAGs. The package abstracts away connection management and provides a declarative interface for common database operations.

The package depends on Apache Airflow >=2.11.0 and bundles support for multiple MySQL client libraries (mysqlclient, mysql-connector-python, aiomysql, pymysql) to accommodate different deployment environments and use cases. It is actively maintained as part of the Apache Airflow ecosystem and supports Python 3.10 through 3.14.

Use it for:

  • Schedule and execute SQL queries on MySQL databases as part of larger data pipelines.
  • Monitor MySQL table changes or query results and trigger downstream Airflow tasks based on conditions.
  • Orchestrate ETL workflows that extract data from MySQL, transform it, and load it into other systems.
  • Run periodic database maintenance tasks (backups, cleanup, schema updates) on a schedule.
  • Integrate MySQL operations with other Airflow providers to build multi-system workflows.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Integrates Apache Airflow with MySQL databases, providing operators, hooks, and sensors to query, execute, and monitor MySQL tasks within Airflow workflows.

Yes. This is a production-stable, actively maintained provider from the Apache Airflow project with no known vulnerabilities. Install it if you need to orchestrate MySQL tasks within Airflow. The low install friction and permissive Apache-2.0 license make it a straightforward choice for Airflow users with MySQL databases.

Install

apache-airflow-providers-mysql on PyPI

pip

pip install apache-airflow-providers-mysql

uv

uv add apache-airflow-providers-mysql

poetry

poetry add apache-airflow-providers-mysql

Installing apache-airflow-providers-mysql

Before you install

Low install friction with a pure-Python wheel. Requires Apache Airflow >=2.11.0 and several MySQL client libraries (mysqlclient, mysql-connector-python, aiomysql, pymysql). Actively maintained with recent releases; last commit 2026-08-14.

License in practice

Licensed under Apache-2.0 (permissive). Safe for commercial and proprietary use with minimal restrictions; you may use, modify, and distribute subject to license attribution.

Quickstart

pip install apache-airflow-providers-mysql

from airflow.providers.mysql.operators.mysql import MySqlOperator
from airflow import DAG

with DAG('my_mysql_dag') as dag:
    task = MySqlOperator(
        task_id='run_query',
        sql='SELECT * FROM table',
        mysql_conn_id='mysql_default'
    )

Requires Apache Airflow >=2.11.0 already installed and a configured MySQL connection in Airflow.

Verify before relying

  • Whether all seven MySQL client libraries are required simultaneously or if the provider auto-selects based on environment.
  • Performance characteristics and connection pooling behavior across the different MySQL drivers.
  • Async support scope and limitations with aiomysql.

Package facts

License Apache-2.0 (permissive)
Python support supports the current Python release (>=3.10)
Install friction low — pure-Python wheel
Runtime dependencies 7 — apache-airflow, apache-airflow-providers-common-compat, apache-airflow-providers-common-sql, mysqlclient, mysql-connector-python, aiomysql, pymysql
Maintenance actively maintained — 68 days since the last release
Last repo commit
First released
Downloads 15,741,276/month — #1,175 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: apache_airflow_providers_mysql-6.6.1-py3-none-any.whl

Keywords: airflow-provider, mysql, airflow, integration

Development Status :: 5 - Production/StableEnvironment :: ConsoleEnvironment :: Web EnvironmentFramework :: Apache AirflowFramework :: Apache Airflow :: ProviderIntended Audience :: DevelopersIntended Audience :: System AdministratorsProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: System :: Monitoring

Tags

airflow mysql integrationairflow mysql operatormysql database tasks airflowairflow mysql connectionschedule mysql queries airflowmysql dag tasksairflow sql provider mysql
airflow-providerworkflow-orchestrationdatabase-integration

More Monitoring packages

tqdm

Wraps any iterable to display a real-time…

copyleft · top 100 on PyPI

opentelemetry-semantic-conventions

Provides generated Python code for…

permissive · top 100 on PyPI

opentelemetry-sdk

Provides the reference implementation of the…

permissive · top 100 on PyPI

opentelemetry-api

Provides the abstract API and interfaces for…

permissive · top 100 on PyPI

opentelemetry-exporter-otlp-proto-http

Exports OpenTelemetry observability data to an…

permissive · top 1,000 on PyPI

opentelemetry-instrumentation

Provides automatic instrumentation commands and…

permissive · top 1,000 on PyPI

apache-airflow-providers-jdbc

Provides Apache Airflow integration for…

permissive · top 5,000 on PyPI

apache-airflow-providers-microsoft-mssql

Integrates Microsoft SQL Server (MSSQL) with…

permissive · top 5,000 on PyPI

apache-airflow-providers-vertica

Integrates Vertica database connectivity into…

permissive · top 15,000 on PyPI

apache-airflow-providers-common-sql

Provides common SQL operators, hooks, and…

permissive · top 1,000 on PyPI

apache-airflow-providers-teradata

Integrates Apache Airflow with Teradata…

permissive · top 15,000 on PyPI

apache-airflow-providers-trino

Integrates Apache Airflow with Trino, enabling…

permissive · top 15,000 on PyPI

apache-airflow-providers-apache-hive

Integrates Apache Hive with Apache Airflow,…

permissive · top 15,000 on PyPI

apache-airflow-providers-presto

Integrates Presto query execution into Apache…

permissive · top 15,000 on PyPI

apache-airflow-providers-postgres

Integrates PostgreSQL databases with Apache…

permissive · top 5,000 on PyPI

apache-airflow-providers-databricks

Integrates Apache Airflow with Databricks,…

permissive · top 1,000 on PyPI