Skip to main content

harlequin-mysql

This repo provides the Harlequin adapter for MySQL/MariaDB.

Installation

You must install the harlequin-mysql package into the same environment as harlequin. The best and easiest way to do this is to use uv to install Harlequin with the mysql extra:

uv tool install 'harlequin[mysql]'

Usage and Configuration

You can open Harlequin with the MySQL/MariaDB adapter by selecting it with the -a option and passing connection parameters as CLI options:

harlequin -a mysql -h localhost -p 3306 -U root --password example --database dev

Note: use -a mysql for both MySQL and MariaDB servers.

The MySQL/MariaDB adapter does not accept a connection string or DSN.

Read-only mode

This adapter supports Harlequin's --read-only option:

harlequin --read-only -a mysql -h localhost -U root --password example --database dev

Every connection runs set session transaction read only, so the server refuses DML and DDL with error 1792 (tested on MySQL 8.0 and MariaDB 10.11). Statements that do not touch data, like set global ..., are still allowed; for a stronger guarantee, connect with a read-only account.

Catalog search

This adapter supports Harlequin's --catalog-search option:

hsql --catalog-search customer_id -a mysql -h localhost -U root --password example

The term matches any part of a database, table, view, or column name, case-insensitively; one query searches every database.

Many more options are available; to see the full list, run:

harlequin --help

For more information, see the Harlequin Docs.

Metadata

Release files for harlequin-mysql 1.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for harlequin-mysql 1.4.0
File Size Uploaded
harlequin_mysql-1.4.0.tar.gz 25.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for harlequin-mysql 1.4.0
File Interpreter ABI Platform
harlequin_mysql-1.4.0-py3-none-any.whl Python 3 none any Details

Total release size: 51.2 kB

Release files / harlequin_mysql-1.4.0.tar.gz

Download URL harlequin_mysql-1.4.0.tar.gz
Size 25.9 kB
Tags Source
SHA-256 checksum
How to use checksums
60eb100978711c4f8a6e1b702d7fed313f298b2b0641eed259a5415673f75d25
BLAKE2b-256 checksum
How to use checksums
2886e9fe658afd953b8580ad8399fad17f248b2dfab612fff5c2e2292d415f14
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 29, 2026.

Transparency log

Release files / harlequin_mysql-1.4.0-py3-none-any.whl

Download URL harlequin_mysql-1.4.0-py3-none-any.whl
Size 25.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c703300b3dc2d2d63b75bd97c06b5331d773d17e777ace6aa66fbcb4b284baf9
BLAKE2b-256 checksum
How to use checksums
43b24b85815800a910b050628bf9100c99252b74ea0f8edd127032f3f5c89d8e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 29, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

1.4.0 This release

2 release files

1.3.1

2 release files

1.3.0

2 release files

1.2.0

2 release files

1.1.0

2 release files

1.0.0

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page