Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. Command-Line Apps
  3. mycli

mycli

BSD-3-ClausePythonv2.21.1

A command-line MySQL client with auto-completion, syntax highlighting, and smart context-aware suggestions.

Visit WebsiteGitHubGitHub
12.0k stars698 forks0 contributors

What is mycli?

Mycli is a terminal-based MySQL client that enhances the standard MySQL command-line experience with modern features like auto-completion and syntax highlighting. It makes database interaction faster and more intuitive by reducing the cognitive load of writing SQL. The tool is designed for developers and database administrators who work with MySQL databases.

Target Audience

Database administrators and developers who frequently interact with MySQL databases via the command line and seek a more productive, user-friendly interface. It is particularly useful for those writing complex SQL queries or managing multiple databases.

Value Proposition

Developers choose mycli over the standard MySQL client for its intelligent, context-aware auto-completion and syntax highlighting, which streamline query writing and debugging. Its integration with tools like fzf for fuzzy history search and support for features like favorite queries and SSL connections provide a modern, secure, and efficient workflow.

Overview

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

Use Cases

Best For

  • Database administrators needing efficient, command-line-based MySQL management with auto-completion for tables and columns.
  • Developers writing complex, multiline SQL queries who benefit from syntax highlighting and smart context-aware suggestions.
  • Teams requiring secure database connections with SSL support and system keyring integration for password storage.
  • Users who want to save and quickly execute frequently used queries via favorite queries with aliases.
  • Professionals seeking a fuzzy search through command history using fzf for faster retrieval of past queries.
  • Individuals working on macOS or Linux who prefer a Python-based, modern alternative to the standard MySQL CLI with features like timing and pretty-printed tabular data.

Not Ideal For

  • Users who require graphical database management tools with visual query builders or schema designers.
  • Windows environments without WSL, as native support is experimental and untested, leading to potential instability.
  • Teams with strict dependency controls that restrict installing Python packages or external tools like fzf.

Pros & Cons

Pros

Intelligent Auto-Completion

Offers context-aware suggestions for SQL keywords, tables, and columns, speeding up query writing and reducing errors, as demonstrated in the smart-completion features.

Syntax Highlighting

Uses Pygments to colorize SQL syntax, improving readability and making complex queries easier to debug, a core feature highlighted in the documentation.

Fuzzy History Search

Integrates with fzf for efficient searching through command history, allowing quick retrieval of past queries, which is emphasized in the features list.

Secure and Convenient

Supports SSL connections for encrypted access and system keyring integration for password storage, enhancing security without sacrificing usability.

Cons

Untested Windows Support

Native Windows installation is not tested and requires extra setup like installing a pager, making it unreliable for users without WSL, as admitted in the README.

Python Dependency

Requires Python 3.10 or better, which can be a barrier in environments with older Python versions or where package management is restricted.

Limited Database Support

Focused only on MySQL; for other databases like PostgreSQL, users must switch to separate tools like pgcli, fragmenting the workflow for multi-database environments.

Frequently Asked Questions

Quick Stats

Stars11,974
Forks698
Contributors0
Open Issues0
Last commit8 hours ago
CreatedSince 2015

Tags

#database#developer-tools#prompt-toolkit#data-science#syntax-highlighting#command-line-tool#sql-autocompletion#auto-completion#python#database-administration#mysql#mysql-client#database-management#sql

Built With

C
Click
p
prompt_toolkit
P
Python
P
Pygments

Links & Resources

Website

Included in

Python290.8kCommand-Line Apps19.2kDatabase Tools5.1kMySQL2.6k
Auto-fetched 3 hours ago

Related Projects

yt-dlpyt-dlp

A feature-rich command-line audio/video downloader

Stars189,707
Forks16,466
Last commit8 days ago
fuckfuck

Magnificent app which corrects your previous console command.

Stars97,772
Forks3,960
Last commit2 years ago
httpiehttpie

🥧 HTTPie CLI — modern, user-friendly command-line HTTP client for the API era. JSON support, colors, sessions, downloads, plugins & more.

Stars38,485
Forks3,998
Last commit1 year ago
cookiecuttercookiecutter

A cross-platform command-line utility that creates projects from cookiecutters (project templates), e.g. Python package projects, C projects.

Stars25,081
Forks2,274
Last commit5 months ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub