# dbcli/mycli

Rich MySQL Terminal Client with AutoCompletion, Syntax Highlighting, and Dataframes

Repository: https://github.com/dbcli/mycli
Canonical: https://ross.abutalabs.com/products/mycli
Homepage: http://mycli.net
Language: Python
License: BSD-3-Clause
License Family: permissive
Topics: database, python, syntax-highlighting, mysql, mycli, auto-completion, data-science, sql
Last push: 2026-08-25T16:45:29+00:00

## Health v2 (maintenance only)
Score: 95/100 (v2, computed 2026-09-03T02:39:23.370411+00:00)
- activity 99, release rhythm 87, longevity 100
- inputs: {"age_days": 4168, "days_push": 8, "days_rel": 8, "gap_med": 2, "n_releases_24m": 98}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 11967, forks 697 (observed 2026-08-28T04:10:50.572491+00:00)

## What it is
mycli is a command-line terminal client for MySQL and compatible databases (MariaDB, Percona, TiDB, Apache Doris) with context-sensitive auto-completion, syntax highlighting, and Polars dataframe support. It is a user-friendly alternative to the default mysql shell, with features like fuzzy history search, favorite queries, and LLM integration.

## Use cases
- query mysql from the terminal with autocomplete
- a better mysql command line client with syntax highlighting
- interactively explore tables and columns in a mysql database
- run sql queries with pretty printed colored output
- save and reuse favorite sql queries with parameters
- query an llm about my database schema from the cli
- export query results to parquet or plot dataframes

## When to choose
- you work with MySQL, MariaDB, Percona, TiDB, or Apache Doris daily and want a smarter REPL than the mysql shell
- you want context-sensitive completion, fuzzy history search, and syntax highlighting out of the box
- you want dataframe transforms, plotting, or LLM assistance directly at the SQL prompt

## When to avoid
- you primarily use PostgreSQL or SQLite (use pgcli or litecli instead)
- you need a fully supported native Windows experience (testing is limited with known limitations)
- you need a GUI database client or automated non-interactive scripting where plain mysql client suffices

## Facets
- artifact type: cli-tool
- maturity: active
- function: database, cli, search-engine
- domain: databases, developer-tools, data-science
- platform: windows, python, cli
- tags: mysql, mariadb, sql-client, repl, autocompletion, syntax-highlighting, dataframes, llm, tidb, keyring, command-line, linux, macos

## Member repositories
- dbcli/mycli (main) score 95

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:50.572491+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:15:02.102050+00:00, confidence not recorded.
  - readme: https://github.com/dbcli/mycli (fetched 2026-08-28T04:10:50.572491+00:00, sha a007e358f4d9)
  - homepage: http://mycli.net (fetched 2026-08-29T08:12:56.993288+00:00, sha 8f38f4e08995)
  - site_page: https://www.mycli.net/install (fetched 2026-08-29T08:12:57.003130+00:00, sha 869cda192378)
  - site_page: https://www.mycli.net/docs (fetched 2026-08-29T08:12:57.005256+00:00, sha 954fdefaf274)
  - site_page: https://www.mycli.net/about (fetched 2026-08-29T08:12:57.009085+00:00, sha 2d5e4aa7e650)
  - registry_pypi: https://pypi.org/pypi/mycli/json (fetched 2026-08-29T08:12:57.010815+00:00, sha 78a188697b47)
  - site_page: https://www.mycli.net/faq (fetched 2026-08-29T08:12:57.007218+00:00, sha 794cccd8ad39)
- Data as of 2026-08-30T08:39:29.467469+00:00.
