With the introduction of MySQL Shell 8.0, the second major
version of the new command-line tool for MySQL, a new and rich
featured prompt was introduced. Unlike the prompt of the
traditional mysql command-line client, it does not just say
mysql>
by default. Instead it comes in a colour
coded spectacle.
The default prompt is great, but for one reason or another it may be that you want to change the prompt. Before getting to that, let’s take a look at the default prompt, so the starting point is clear.
The Default Prompt
An example of the default prompt can be seen in the screen shot below. As you can see, there are several parts to the prompt, each carrying its information.
…
[Read more]