Franck Cuny @franckcuny

Software and Operation engineer.

Customize your MySQL prompt

To customize your MySQL prompt, create a .my.cnf file in your $HOME then add the following:

[mysql]
prompt="\\u [\\d] >"

Your prompt will now looks like this: username [dabatases_name] >