Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions content/pages/prompt.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,19 @@ you can interactively change the prompt by using the

The prompt is generated using the following format sequences:

* `\D` - the full current date, _e.g._ `Sat Feb 14 15:55:48 2026`
* `\R` - the current hour in 24-hour time (0–23)
* `\r` - the current hour in 12-hour time (1–12)
* `\D` - full current date, _e.g._ `Sat Feb 14 15:55:48 2026`
* `\R` - current hour in 24-hour time (0–23)
* `\r` - current hour in 12-hour time (0–12)
* `\m` - minutes of the current time
* `\s` - seconds of the current time
* `\P` - AM/PM
* `\d` - selected database/schema
* `\h` - hostname of the server
* `\p` - the connection port
* `\p` - connection port
* `\j` - connection socket basename
* `\J` - full connection socket path
* `\k` - connection socket basename OR the port
* `\K` - full connection socket path OR the port
* `\t` - database vendor (Percona, MySQL, MariaDB, TiDB)
* `\u` - username
* `\A` - DSN alias if any
Expand Down