Forrest logo
tool overview
On this page you find all important commands for the CLI tool mycli. If the command you are looking for is missing please ask our AI.

mycli

mycli is a command line tool for connecting to MySQL databases using a user-friendly interface. It is designed to enhance the MySQL command line experience by providing features like auto-completion, syntax highlighting, and a more intuitive user interface.

  1. mycli supports all versions of MySQL, including MySQL 8.0 and MariaDB.
  2. It is written in Python and can be installed via pip, making it platform-independent.
  3. The tool offers a powerful auto-completion feature that suggests SQL keywords, table names, and column names as you type, speeding up the query writing process.
  4. mycli supports syntax highlighting, making it easier to read and understand complex SQL statements.
  5. It allows users to connect to multiple databases and switch between them effortlessly within the same session.
  6. The tool provides a command history feature that allows users to scroll through and re-execute previously executed SQL statements.
  7. It supports multiline queries, meaning you can write and execute SQL queries spanning multiple lines.
  8. mycli provides shortcuts for commonly used commands, such as "show tables," "describe," and "use ," making it more efficient to navigate and interact with databases.
  9. The tool has built-in support for vertical and horizontal table formatting, allowing users to customize the display of query results.
  10. mycli provides additional functionalities like SSL encryption, persistent sessions, and customizable themes for personalization.

List of commands for mycli:

  • mycli:tldr:1e74c mycli: Connect to a database on the specified host with the specified user.
    $ mycli -u ${user} -h ${host} ${database_name}
    try on your machine
    explain this command
  • mycli:tldr:547f9 mycli: Connect to a local database on port 3306, using the current user's username.
    $ mycli ${database_name}
    try on your machine
    explain this command
  • mycli:tldr:903e9 mycli: Connect to a database (user will be prompted for a password).
    $ mycli -u ${username} ${database_name}
    try on your machine
    explain this command
  • mycli:tldr:a2097 mycli: Connect to a database on another host.
    $ mycli -h ${database_host} -P ${port} -u ${username} ${database_name}
    try on your machine
    explain this command
tool overview