MYCLI(1)
π mycli β the manual page, bestie edition π
okay so. this is a manual page from the DBCLI family, and it's all about mycli, section 1 of the manuals. strap in, we're gonna slay this π«Ά
β¨ NAME β¨
mycli β a CLI for MySQL/MariaDB with auto-completion and syntax highlighting. that's it, that's the vibe. π
β¨ SYNOPSIS β¨
mycli [OPTIONS] [DATABASE]
literally so simple. options, then optionally a database. periodt. π
β¨ DESCRIPTION β¨
mycli is a command line interface for MySQL/MariaDB with auto-completion and syntax highlighting, bestie. it's giving β¨aesthetic terminalβ¨. and that's not even all β it can also pretty print tabular data, which is lowkey the most satisfying thing ever. πΈ
β¨ OPTIONS β¨
okay this is the main character section, don't skip a single one:
-h,--hostTEXT β the host address of the database. where your db actually lives, iykyk. π-P,--portINTEGER β the port number to use for the connection. it honors$MYSQL_TCP_PORT, which is iconic of it. πͺ-u,--userTEXT β user name to connect to the database. who are you in this story? π-S,--socketTEXT β the socket file to use for the connection. π-p,--password,--passTEXT β password to connect to the database. keep it secret, keep it safe, no cap. π€«-v,--versionβ shows the version ofmycli. π·οΈ-D,--databaseTEXT β database to use. yes queen, pick one. ποΈ-R,--promptTEXT β the prompt format. default is"\t \u@\h:\d> ". customize it, make it yours, main character energy only. β¨-l,--logfileFILENAME β log every query and its results to a file. receipts!! π--defaults-group-suffixTEXT β read config group with the specified suffix. π§©--defaults-filePATH β only read default options from the given file. just that one, bestie. π--login-pathTEXT β read this path from the login file. π€οΈ--helpβ shows the help message and exits. the classic. π
β¨ EXAMPLES β¨
here's how the girlies actually run it:
$ mycli my_database
$ mycli -u my_user -h my_host.com my_database
$ mycli mysql://my_user@my_host.com:3306/my_database
that last one with the URL? ate. π₯
β¨ SEE ALSO β¨
sibling icons, go show them love π
litecli(1)pgcli(1)iredis(1)
β¨ HOMEPAGE β¨
want more tea about mycli and the DBCLI project? it's all on the homepage at https://www.mycli.net and https://www.dbcli.com. π
β¨ AUTHORS β¨
mycli was written by Amjith Ramanujam <amjith.r@gmail.com>. π«Ά
this manual page was written by Lennart Weller <lhw@ring0.de>, for the Debian project (but may be used by others). π
and that's the whole thing, bestie!! this manual page is for mycli version 2.23.2, under the MYCLI(1) banner, and honestly? she ate. π
β¨ bye babes π¦
π¦ where this page comes from
- debian bookworm: mycli 1.26.1-3 Β· BSD-3-Clause
- debian trixie: mycli 1.31.2-1 Β· BSD-3-Clause
- ubuntu jammy: mycli 1.24.3-1 Β· BSD-3-Clause
- ubuntu noble: mycli 1.27.0-1 Β· BSD-3-Clause
- ubuntu questing: mycli 1.31.2-1
- ubuntu resolute: mycli 1.54.1-1 Β· BSD-3-Clause
- ubuntu stonking: mycli 2.14.0-1 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms