---
title: Install mycli on Linux | Snap Store
description: Get the latest version of mycli for Linux - mycli is a command line interface
  for MySQL, MariaDB, and Percona.
url: https://snapcraft.io/mycli
---

# mycli

[Khiem Doan (khiemdoan)](https://snapcraft.io/publisher/khiemdoan "View all snaps from Khiem Doan (khiemdoan)")

* [Khiem Doan (khiemdoan)](https://snapcraft.io/publisher/khiemdoan "View all snaps from Khiem Doan (khiemdoan)")
* [Development](https://snapcraft.io/search?categories=development)
* [Utilities](https://snapcraft.io/search?categories=utilities)

latest/stable 1.26.0

Install latest/stable of mycli

---

**Install using the command line**

```
sudo snap install mycli
```

Don't have snapd? [Get set up for snaps](https://snapcraft.io/docs/installing-snapd).

---

### Package name

* mycli

---

### License

* unset

---

### Last updated

* 30 March 2026 - latest/stable
* 17 December 2024 - latest/edge

---

### Websites

* [github.com/khiemdoan/mycli-snap](https://github.com/khiemdoan/mycli-snap "https://github.com/khiemdoan/mycli-snap")

---

##### Report a Snap Store violation

* [Report this Snap](https://snapcraft.io/mycli#report-snap-modal)

---

* [Description](https://snapcraft.io/mycli#tab-description)
* [Security](https://snapcraft.io/mycli#tab-security)

#### mycli is a command line interface for MySQL, MariaDB, and Percona.

mycli is a command line interface for MySQL, MariaDB, and Percona with auto-completion and syntax highlighting.

Usage

$ mycli --help
Usage: mycli [OPTIONS] [DATABASE]

A MySQL terminal client with auto-completion and syntax highlighting.

Examples:

* mycli my\_database
* mycli -u my\_user -h my\_host.com my\_database
* mycli mysql://my\_user@my\_host.com:3306/my\_database

Options:
-h, --host TEXT Host address of the database.
-P, --port INTEGER Port number to use for connection. Honors
$MYSQL\_TCP\_PORT.
-u, --user TEXT User name to connect to the database.
-S, --socket TEXT The socket file to use for connection.
-p, --password TEXT Password to connect to the database.
--pass TEXT Password to connect to the database.
--ssl-ca PATH CA file in PEM format.
--ssl-capath TEXT CA directory.
--ssl-cert PATH X509 cert in PEM format.
--ssl-key PATH X509 key in PEM format.
--ssl-cipher TEXT SSL cipher to use.
--ssl-verify-server-cert Verify server's "Common Name" in its cert
against hostname used when connecting. This
option is disabled by default.
-V, --version Output mycli's version.
-v, --verbose Verbose output.
-D, --database TEXT Database to use.
-d, --dsn TEXT Use DSN configured into the [alias\_dsn]
section of myclirc file.
--list-dsn list of DSN configured into the [alias\_dsn]
section of myclirc file.
-R, --prompt TEXT Prompt format (Default: "\t \u@\h:\d> ").
-l, --logfile FILENAME Log every query and its results to a file.
--defaults-group-suffix TEXT Read MySQL config groups with the specified
suffix.
--defaults-file PATH Only read MySQL options from the given file.
--myclirc PATH Location of myclirc file.
--auto-vertical-output Automatically switch to vertical output mode
if the result is wider than the terminal
width.
-t, --table Display batch output in table format.
--csv Display batch output in CSV format.
--warn / --no-warn Warn before running a destructive query.
--local-infile BOOLEAN Enable/disable LOAD DATA LOCAL INFILE.
--login-path TEXT Read this path from the login file.
-e, --execute TEXT Execute command and quit.
--help Show this message and exit.

---

## Install mycli on your Linux distribution

Choose your Linux distribution to get detailed installation instructions. If yours is not shown, get more details on the [installing snapd documentation](https://snapcraft.io/docs/installing-snapd).

[### Arch Linux](https://snapcraft.io/install/mycli/arch)

[### CentOS](https://snapcraft.io/install/mycli/centos)

[### Debian](https://snapcraft.io/install/mycli/debian)

[### elementary OS](https://snapcraft.io/install/mycli/elementary)

[### Fedora](https://snapcraft.io/install/mycli/fedora)

[### KDE Neon](https://snapcraft.io/install/mycli/kde-neon)

[### Kubuntu](https://snapcraft.io/install/mycli/kubuntu)

[### Manjaro](https://snapcraft.io/install/mycli/manjaro)

[### Pop!\_OS](https://snapcraft.io/install/mycli/pop)

[### openSUSE](https://snapcraft.io/install/mycli/opensuse)

[### Red Hat Enterprise Linux](https://snapcraft.io/install/mycli/rhel)

[### Ubuntu](https://snapcraft.io/install/mycli/ubuntu)

[### Raspberry Pi](https://snapcraft.io/install/mycli/raspbian)
