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)
| File | Size | Uploaded | |
|---|---|---|---|
| harlequin_mysql-1.4.0.tar.gz | 25.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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 logRelease 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