2019-06-22 23:37:46 +08:00
|
|
|
# mycli
|
|
|
|
|
2025-03-22 08:37:12 +02:00
|
|
|
> A CLI for MySQL, MariaDB, and Percona that can do auto-completion and syntax highlighting.
|
|
|
|
> More information: <https://manned.org/mycli>.
|
2019-06-22 23:37:46 +08:00
|
|
|
|
|
|
|
- Connect to a local database on port 3306, using the current user's username:
|
|
|
|
|
|
|
|
`mycli {{database_name}}`
|
|
|
|
|
|
|
|
- Connect to a database (user will be prompted for a password):
|
|
|
|
|
2025-03-22 08:37:12 +02:00
|
|
|
`mycli {{[-u|--user]}} {{username}} {{database_name}}`
|
2019-06-22 23:37:46 +08:00
|
|
|
|
|
|
|
- Connect to a database on another host:
|
|
|
|
|
2025-03-22 08:37:12 +02:00
|
|
|
`mycli {{[-h|--host]}} {{database_host}} {{[-P|--port]}} {{port}} {{[-u|--user]}} {{username}} {{database_name}}`
|