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.
- mycli supports all versions of MySQL, including MySQL 8.0 and MariaDB.
- It is written in Python and can be installed via pip, making it platform-independent.
- 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.
- mycli supports syntax highlighting, making it easier to read and understand complex SQL statements.
- It allows users to connect to multiple databases and switch between them effortlessly within the same session.
- The tool provides a command history feature that allows users to scroll through and re-execute previously executed SQL statements.
- It supports multiline queries, meaning you can write and execute SQL queries spanning multiple lines.
- mycli provides shortcuts for commonly used commands, such as "show tables," "describe," and "use
," making it more efficient to navigate and interact with databases. - The tool has built-in support for vertical and horizontal table formatting, allowing users to customize the display of query results.
- 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 machineexplain 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 machineexplain 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 machineexplain 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 machineexplain this command