mycli is an interactive command-line client for MySQL, MariaDB, and Percona databases, featuring auto-completion, syntax highlighting, and smart suggestions. It's built on prompt_toolkit and pygments, providing a user-friendly and efficient interface for database administration and querying. The current version is 1.68.1, with a release cadence of minor versions every few weeks to months.
pip install mycliVerified import paths — ran on the pinned version, not inferred.
Start MyCLI from your terminal. You can specify connection parameters like host, user, database, and password directly via command-line flags. If a password is required, you'll be prompted for it interactively.
Use the `--socket` (or `-S`) command-line option or configure it via a `~/.myclirc` configuration file, or standard MySQL client configuration.
Ensure that when using `--throttle`, you provide a floating-point number (e.g., `mycli --batch input.sql --throttle 0.5`) rather than an integer.
Ensure your build environment has necessary compilers (e.g., `gcc`, `build-essential` on Linux, Xcode command-line tools on macOS). Consider installing MyCLI in a dedicated virtual environment (`python -m venv .venv && source .venv/bin/activate && pip install mycli`) to isolate its dependencies.
No dependency data recorded yet.