mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
22 lines
534 B
Plaintext
22 lines
534 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, linux]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# mycli
|
|
|
|
> A CLI for MySQL, MariaDB, and Percona with auto-completion and syntax highlighting.
|
|
> More information: <https://manned.org/mycli>.
|
|
|
|
- Connect to a database with the currently logged in user:
|
|
|
|
`mycli {{database_name}}`
|
|
|
|
- Connect to a database with the specified user:
|
|
|
|
`mycli -u {{user}} {{database_name}}`
|
|
|
|
- Connect to a database on the specified host with the specified user:
|
|
|
|
`mycli -u {{user}} -h {{host}} {{database_name}}`
|