Watch
1
0
Fork
You've already forked harlequin-mysql
0
  • Python 99.5%
  • Makefile 0.5%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Daniel Baumann d844127962
Tidying depends for debhelper 14.
Signed-off-by: Daniel Baumann <daniel@debian.org>
2026-09-02 09:06:25 +02:00
.github/workflows Merging upstream version 1.3.1. 2026-08-06 21:40:36 +02:00
debian Tidying depends for debhelper 14. 2026-09-02 09:06:25 +02:00
src/harlequin_mysql Merging upstream version 1.4.0. 2026-08-31 12:39:32 +02:00
tests Merging upstream version 1.4.0. 2026-08-31 12:39:32 +02:00
.gitignore Adding upstream version 1.1.0. 2025-02-24 20:14:26 +01:00
.harlequin.toml Adding upstream version 1.1.0. 2025-02-24 20:14:26 +01:00
.python-version Merging upstream version 1.3.0. 2025-11-01 06:37:57 +01:00
CHANGELOG.md Merging upstream version 1.4.0. 2026-08-31 12:39:32 +02:00
docker-compose.yml Adding upstream version 1.1.0. 2025-02-24 20:14:26 +01:00
LICENSE Adding upstream version 1.1.0. 2025-02-24 20:14:26 +01:00
Makefile Merging upstream version 1.3.0. 2025-11-01 06:37:57 +01:00
pyproject.toml Merging upstream version 1.4.0. 2026-08-31 12:39:32 +02:00
README.md Merging upstream version 1.4.0. 2026-08-31 12:39:32 +02:00
uv.lock Merging upstream version 1.4.0. 2026-08-31 12:39:32 +02:00

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.

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.