Prompt

Mycli provides a configurable prompt. When mycli starts up, it will use the prompt configuration found in its config file. Once mycli is running, you can interactively change the prompt by using the prompt command.

The prompt is generated using the following format sequences:

The default prompt looks something like this: mysql user@localhost:db_name>.

The default format string is \t \u@\h:\d>.

Additional Configuration

Mycli's configuration file has an additional prompt-related option called prompt_continuation. This defaults to ->. This means that when a query spans more than one line, subsequent lines start with ->:

mysql user@localhost:db > SELECT first_name, last_name, date_of_birth
                       -> FROM users
                       -> WHERE

prompt_continuation can also be set to the empty string: ''.

Sponsors

Nova Kid School

blogroll

social