MyCLI - CLI for MySQL Database

1.68.1 · active · verified Fri Apr 17

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.

Common errors

Warnings

Install

Imports

Quickstart

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.

# To connect to a local MySQL instance as root:
mycli -u root

# To connect to a specific database (e.g., 'testdb') on a remote host (e.g., '192.168.1.100'):
mycli -h 192.168.1.100 -u myuser -D testdb -p

# To exit the mycli prompt:
# \q
# (or Ctrl+D)

view raw JSON →