How To Install Mycli In Debian, Ubuntu, Kali, Fedora, Raspbian And MacOS?

How To Install Mycli In Debian, Ubuntu, Kali, Fedora, Raspbian And MacOS?

mycli

A CLI for MySQL, MariaDB, and Percona with auto-completion and syntax highlighting.

Maintainer: Lennart Weller


Website: http://mycli.net

Section: database

Install mycli

  • Debian apt-get install mycli Click to copy
  • Ubuntu apt-get install mycli Click to copy
  • Kali Linux apt-get install mycli Click to copy
  • Fedora dnf install mycli Click to copy
  • Raspbian apt-get install mycli Click to copy
  • macOS brew install mycli Click to copy

A CLI for MySQL, MariaDB, and Percona with auto-completion and syntax highlighting.

How to use mycli?

Below are few example commands for mycli that you can use in the terminal.

Connect to a database with the currently logged in user:
mycli database_nameClick to copy
Connect to a database with the specified user:
mycli -u user database_nameClick to copy
Connect to a database on the specified host with the specified user:
mycli -u user -h host database_nameClick to copy
Installation of latest mycli command is available for Debian, Ubuntu, Kali, Fedora, Raspbian and macOS. You can copy the command for your OS from above and paste it into your terminal. Once you run the command it will download the 2024 latest package from the repository and install it in your computer/server.