EVERYTHING XIAOMI
Get listed

mycli

mycli is a free command-line client for MySQL databases, also compatible with MariaDB, Percona, TiDB, and Apache Doris.

Place
#20 of 31
Score
6.2
mycli's website

What mycli is

mycli is a free command-line client for MySQL databases, also compatible with MariaDB, Percona, TiDB, and Apache Doris. It provides context-sensitive SQL completion and multi-line input; when multi-line mode is enabled, statements must end with a semicolon. Fuzzy history search helps locate previous queries, with fzf recommended but not required. Batch and execution output can use the default format, CSV, TSV, or tables. Its default configuration warns before potentially destructive commands such as DROP, DELETE, and TRUNCATE. For TCP/IP connections, the default SSL mode prefers SSL but can fall back to cleartext, and server certificate verification is disabled by default. Passwords can be stored and retrieved through the system keyring, though that option is disabled initially. The project is tested on macOS and Linux and requires Python 3.10 or later. The maker recommends pip, or Homebrew on macOS. Native Windows basics work, but the maker does not support that configuration as software; WSL also has known limitations. A pager such as less is essentially required. Optional LLM support is available through the [all] package option.

Good

  • Compatible with five listed database systems.
  • Context-sensitive SQL completion is included.
  • Supports CSV, TSV, table, and default output.
  • Warns before potentially destructive SQL statements.
  • Free plan.

Watch out

  • Requires Python 3.10 or later.
  • A pager such as less is essentially required.
  • Windows configuration is not supported software.
  • Default SSL settings allow cleartext fallback and skip certificate checks.

Who it suits

mycli suits users who prefer a command-line workflow for MySQL-compatible databases and want SQL completion, history search, and configurable output formats. It is a better fit for macOS or Linux users than for Windows or WSL users.

Verdict

mycli offers useful editing and output features at no cost for command-line database work. Consider its platform limitations and default connection security settings before relying on it.

Plans and prices

From mycli's own pricing page, checked 8 Oct 2026.

All about pricing
PlanPriceWhat it gives you
mycliFreeOpen-source command-line MySQL client

The facts

Each one read from mycli's own pages, with the date it was checked.

What it does

Autocomplete
It provides context-sensitive auto-completion for SQL statements.checked 8 Oct 2026
Connection security
The default SSL mode prefers SSL for TCP/IP connections but can fall back to cleartext; server certificate verification is disabled by default.checked 8 Oct 2026
Credential storage
It can store and retrieve passwords using the system keyring, but keyring use is disabled by default.checked 8 Oct 2026
Database compatibility
It is compatible with MySQL, MariaDB, Percona, TiDB, and Apache Doris.checked 8 Oct 2026
Dependencies
A pager such as less is essentially required; fzf is optional and recommended for fuzzy history search.checked 8 Oct 2026
History search
It supports fuzzy history search, for which fzf is recommended but not required.checked 8 Oct 2026
Installation
The maker recommends installing with pip or, on macOS, Homebrew.checked 8 Oct 2026
LLM support
LLM support is available as an optional extra installed with the [all] package option.checked 8 Oct 2026
Output
Batch and execute output can use default, CSV, TSV, or table formats.checked 8 Oct 2026
Product
mycli is a command-line interface for MySQL.checked 8 Oct 2026
Query editing
It supports multi-line SQL input, with a semicolon required to end statements when multi-line mode is enabled.checked 8 Oct 2026
Safety
The default configuration enables warnings before potentially destructive SQL statements such as DROP, DELETE, or TRUNCATE.checked 8 Oct 2026
Supported systems
The project is tested on macOS and Linux, runs on Python 3.10 or later, and has known limitations on Windows and WSL.checked 8 Oct 2026

Where it runs

Windows limitation
Native Windows basics work, but the maker says this configuration is not supported software at this time.checked 8 Oct 2026

Alternatives to mycli

All alternatives
  1. 1Outerbase Studio logo

    Outerbase Studio

    Free planOpen sourceAndroidiOSWebAPI
    8.5From $9 a month
  2. 2

    DBeaver

    Free planOpen sourceWebAPIExtensionLinux
    8.2From $113 a year
  3. 3Beekeeper Studio logo

    Beekeeper Studio

    Free planOpen sourceAPIExtensionLinuxmacOS
    8.0From $18 a month
  4. 4

    Mode

    Free planWebAPILinuxmacOS
    7.5Free plan
  5. 5CloudBeaver logo

    CloudBeaver

    Free planWebLinuxmacOSSelf-hosted
    7.1From $1,025 a year
  6. 6Hex logo

    Hex

    Free planWebAPI
    7.0From $36 a month