Linux command
dolphie 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Connect
dolphie -u [username] --ask-pass -h [host]
Connect
dolphie mysql://[user]:[pass]@[host]:[port]
Connect
dolphie -c [config.ini]
Monitor
dolphie --host [host] --port 6032 -u [user] --ask-pass
Auto-refresh
dolphie -r 2 -h [host] -u [user]
Read credentials
dolphie -m ~/.my.cnf -h [host]
Record
dolphie -R -h [host] -u [user]
说明
dolphie is a real-time terminal user interface for monitoring MySQL, MariaDB, and ProxySQL. It shows dashboards, graphs, processlists, replication status, lock waits, transactions, and resource usage, similar in spirit to mytop and innotop but built on a modern TUI framework. Beyond live monitoring, dolphie can record a session to disk and replay it later, run in daemon mode to collect metrics continuously, and aggregate multiple hosts via hostgroups.
参数
- -u, --user _USERNAME_
- Database username.
- -p, --password _PASSWORD_
- Database password. Prefer --ask-pass or a config file to avoid leaking through shell history.
- --ask-pass
- Prompt for the password interactively.
- -h, --host _HOST_
- Database host (default: localhost).
- -P, --port _PORT_
- Database port (default: 3306; 6032 for ProxySQL).
- -S, --socket _SOCKET_
- Unix socket file path.
- -c, --config-file _FILE_
- Path to a Dolphie configuration file.
- -m, --mycnf-file _FILE_
- MySQL-style config file to read credentials from.
- -l, --login-path _NAME_
- Login path from `~/.mylogin.cnf`.
- -C, --cred-profile _NAME_
- Named credential profile defined in the Dolphie config file.
- -r, --refresh-interval _SECONDS_
- Data collection cycle (default: 1).
- --panels _LIST_
- Comma-separated panels to display at startup (dashboard, processlist, graphs, replication, ...).
- --graph-marker _MARKER_
- Style used for graph markers (default: braille).
- --ssl-mode _MODE_
- REQUIRED, VERIFY_CA, or VERIFY_IDENTITY.
- --ssl-ca _FILE_
- SSL CA certificate file.
- --ssl-cert _FILE_
- SSL client certificate file.
- --ssl-key _FILE_
- SSL client private key file.
- -H, --hostgroup _NAME_
- Connect to a group of hosts defined in the config.
- --heartbeat-table _TABLE_
- pt-heartbeat table reference (MySQL only) for replication lag.
- -R, --record
- Record the session to disk for later replay.
- -D, --daemon
- Run headless in daemon mode; recording is enabled automatically.
- --replay-file _FILE_
- Replay a previously recorded session.
- --show-trxs-only
- Filter the processlist to active transactions only.
- -V, --version
- Display version and exit.
FAQ
What is the dolphie command used for?
dolphie is a real-time terminal user interface for monitoring MySQL, MariaDB, and ProxySQL. It shows dashboards, graphs, processlists, replication status, lock waits, transactions, and resource usage, similar in spirit to mytop and innotop but built on a modern TUI framework. Beyond live monitoring, dolphie can record a session to disk and replay it later, run in daemon mode to collect metrics continuously, and aggregate multiple hosts via hostgroups.
How do I run a basic dolphie example?
Run `dolphie -u [username] --ask-pass -h [host]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -u, --user _USERNAME_ do in dolphie?
Database username.